Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //INCREASE FPS
- //Search
- void FrontendWarZ::eventOptionsReset(r3dScaleformMovie* pMovie, const Scaleform::GFx::Value* args, unsigned argCount)
- //ADD
- int old_increase = r_increase_fps_player->GetInt();
- r_increase_fps_player ->SetInt(0);
- //SEARCH
- if(old_fullscreen!=r_fullscreen->GetInt() || old_vsync!=r_vsync_enabled->GetInt())
- //REPLEACE WITH
- if(old_fullscreen!=r_fullscreen->GetInt() || old_vsync!=r_vsync_enabled->GetInt() || old_increase!=r_increase_fps_player->GetInt() || old_grass!=r_allow_render_grass->GetInt())
- //SEARCH
- switch( r_overall_quality->GetInt() )
- //UNDER CASE 5 ADD'
- if(r_increase_fps_player->GetInt())
- {
- r_half_res_particles->SetBool(true);
- r_split_grass_render->SetBool(true);
- r_optimize_shadow_map->SetBool(true);
- r_shadow_blur->SetBool(false);
- r_hardware_shadow_method->SetBool(true);
- r_allow_hw_shadows->SetBool(true);
- r_optimize_meshes->SetBool(true);
- r_fxaa->SetBool(true);
- r_bloom->SetBool(true);
- r_ssao->SetBool(false);
- r_double_depth_ssao->SetBool(true);
- r_fxaa->SetBool(true);
- r_vsync_enabled->SetBool(false);
- r_particle_shadows->SetBool(false);
- r_cw_shadows->SetBool(true);
- r_optimized_ssao->SetBool(false);
- }
- //SEARCH
- void FrontendWarZ::SyncGraphicsUI()
- //SCROLL DOWN AND CHANGE TO
- Scaleform::GFx::Value var[32];
- //SEARCH
- var[29].SetNumber( r_vsync_enabled->GetInt()+1);
- //ADD VAR[31] IF YOU HAVE ADD OPTION TO REMOVE GRASS
- var[31].SetNumber( r_increase_fps_player->GetInt()+1);
- //SEARCH
- int old_vsync = r_vsync_enabled->GetInt();
- // UNDER CODE ADD
- int old_increase = r_increase_fps_player->GetInt();
- r_increase_fps_player ->SetInt(0);
- //SEARCH FOR
- REG_VAR( r_show_grass_texture_scale , 1.f , 0 );
- //ADD
- REG_VAR( r_increase_fps_player , false , VF_SAVE );
- //SEARCH
- } enableDisableShaderLoading; ( void )enableDisableShaderLoading;
- //CHANGE TO
- if(r_allow_render_grass->GetBool() || r_increase_fps_player->GetBool())
- {
- LoadGrassShaders(false);
- }
- else
- {
- LoadGrassShaders(true);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement