mirror of
https://git.citron-emu.org/citron/emulator
synced 2026-01-06 01:44:23 +00:00
renderer_vulkan: Add conditional rendering control setting
Adds user option to disable Vulkan conditional rendering, which can fix flickering objects in some games caused by rapidly toggled draw calls. Changes: - Add use_conditional_rendering setting (default: enabled) - Guard conditional rendering functions with setting check using [[unlikely]] - Early exit in Pause/Resume and Compare functions when disabled Disabling this in Graphics (Advanced) fixes flickering at cost of performance. Signed-off-by: Zephyron <zephyron@citron-emu.org>
This commit is contained in:
@@ -469,6 +469,8 @@ struct Values {
|
||||
Category::RendererAdvanced};
|
||||
SwitchableSetting<bool> barrier_feedback_loops{linkage, true, "barrier_feedback_loops",
|
||||
Category::RendererAdvanced};
|
||||
SwitchableSetting<bool> use_conditional_rendering{linkage, true, "use_conditional_rendering",
|
||||
Category::RendererAdvanced};
|
||||
|
||||
Setting<bool> renderer_debug{linkage, false, "debug", Category::RendererDebug};
|
||||
Setting<bool> renderer_shader_feedback{linkage, false, "shader_feedback",
|
||||
|
||||
Reference in New Issue
Block a user