From 65e071389621d96a798413ccef2e6cc8cb8bab80 Mon Sep 17 00:00:00 2001 From: Vova Date: Sat, 19 Apr 2025 12:18:05 +1000 Subject: [PATCH] Added: Fix Occlusion Culling --- src/Ryujinx.Graphics.Gpu/Engine/Threed/SemaphoreUpdater.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Ryujinx.Graphics.Gpu/Engine/Threed/SemaphoreUpdater.cs b/src/Ryujinx.Graphics.Gpu/Engine/Threed/SemaphoreUpdater.cs index a9a96d54a..2e8d8d697 100644 --- a/src/Ryujinx.Graphics.Gpu/Engine/Threed/SemaphoreUpdater.cs +++ b/src/Ryujinx.Graphics.Gpu/Engine/Threed/SemaphoreUpdater.cs @@ -165,6 +165,11 @@ namespace Ryujinx.Graphics.Gpu.Engine.Threed Timestamp = ticks, }; + if (result <= 0) + { + return; + } + if (counter?.Invalid != true) { _channel.MemoryManager.Write(gpuVa, counterData);