Ryujinx-git/Ryujinx.Graphics.Gpu/Engine
riperiperi 36172ab43b
Scale SamplesPassed counter by RT scale on report (#3680)
* Scale SamplesPassed counter by RT scale on report

Adds a scale factor for samples passed counter report based on the render target scale at the time. This ensures that when a game reads this counter, it appears similar to the result at 1x.

This doesn't cover cases where the the render target scale changes during the queried draws, though that might be better to handle along with other scope related issues in a future rework of counters. Games generally don't count for occlusion queries over render target changes anyways.

Fixes an issue in the Splatoon games where the special charge would scale too quickly at high res, points at the end of the game would be broken (but still provide a correct winner), and playing at a low res would make it impossible to swim in ink.

May also affect LOD scaling in The Witcher 3.

* Update Ryujinx.Graphics.Gpu/Engine/Threed/SemaphoreUpdater.cs

Co-authored-by: gdkchan <gab.dark.100@gmail.com>

Co-authored-by: gdkchan <gab.dark.100@gmail.com>
2022-09-11 15:58:15 +00:00
..
Compute Vulkan backend (#2518) 2022-07-31 18:26:06 -03:00
Dma Fast path for Inline-to-Memory texture data transfers (#3610) 2022-08-26 02:16:41 +00:00
GPFifo Vulkan backend (#2518) 2022-07-31 18:26:06 -03:00
InlineToMemory Fast path for Inline-to-Memory texture data transfers (#3610) 2022-08-26 02:16:41 +00:00
MME Removed unused usings. (#3593) 2022-08-18 18:04:54 +02:00
Threed Scale SamplesPassed counter by RT scale on report (#3680) 2022-09-11 15:58:15 +00:00
Twod Perform unscaled 2d engine copy on CPU if source texture isn't in cache. (#3112) 2022-02-22 11:21:29 -03:00
Types Fix blend with RGBX color formats (#3553) 2022-08-11 18:23:25 -03:00
ConditionalRenderEnabled.cs Separate GPU engines (part 2/2) (#2440) 2021-07-11 17:20:40 -03:00
DeviceStateWithShadow.cs Separate GPU engines (part 2/2) (#2440) 2021-07-11 17:20:40 -03:00
MmeShadowScratch.cs Rename ToSpan to AsSpan (#3556) 2022-08-11 18:07:37 -03:00
SetMmeShadowRamControlMode.cs Separate GPU engines (part 2/2) (#2440) 2021-07-11 17:20:40 -03:00
ShaderTexture.cs Fix image binding format (#1625) 2020-10-20 19:03:20 -03:00