From e2248332ae656a1412ebb8e4ea3fcbe617a28a42 Mon Sep 17 00:00:00 2001 From: Eladash Date: Fri, 15 May 2020 16:02:54 +0300 Subject: [PATCH] rsx: Make "Disable ZCull Occlusion" setting dynamic --- rpcs3/Emu/RSX/RSXThread.cpp | 6 ------ rpcs3/Emu/system_config.h | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/rpcs3/Emu/RSX/RSXThread.cpp b/rpcs3/Emu/RSX/RSXThread.cpp index 614940254b..505be8faa5 100644 --- a/rpcs3/Emu/RSX/RSXThread.cpp +++ b/rpcs3/Emu/RSX/RSXThread.cpp @@ -2312,9 +2312,6 @@ namespace rsx void thread::check_zcull_status(bool framebuffer_swap) { - if (g_cfg.video.disable_zcull_queries) - return; - if (framebuffer_swap) { zcull_surface_active = false; @@ -2346,9 +2343,6 @@ namespace rsx void thread::clear_zcull_stats(u32 type) { - if (g_cfg.video.disable_zcull_queries) - return; - zcull_ctrl->clear(this, type); } diff --git a/rpcs3/Emu/system_config.h b/rpcs3/Emu/system_config.h index 6805b3f393..07b61a870e 100644 --- a/rpcs3/Emu/system_config.h +++ b/rpcs3/Emu/system_config.h @@ -123,7 +123,7 @@ struct cfg_root : cfg::node cfg::_bool stretch_to_display_area{ this, "Stretch To Display Area", false, true }; cfg::_bool force_high_precision_z_buffer{ this, "Force High Precision Z buffer" }; cfg::_bool strict_rendering_mode{ this, "Strict Rendering Mode" }; - cfg::_bool disable_zcull_queries{ this, "Disable ZCull Occlusion Queries", false }; + cfg::_bool disable_zcull_queries{ this, "Disable ZCull Occlusion Queries", false, true }; cfg::_bool disable_vertex_cache{ this, "Disable Vertex Cache", false }; cfg::_bool disable_FIFO_reordering{ this, "Disable FIFO Reordering", false }; cfg::_bool frame_skip_enabled{ this, "Enable Frame Skip", false, true };