shadPS4/src
hspir404 6862c9aad7
Speed up LiverpoolToVK::SurfaceFormat (#1982)
* Speed up LiverpoolToVK::SurfaceFormat

In Bloodborne this shows up as the function with the very highest cumulative "exclusive time". This is true both in scenes that perform poorly, and scenes that perform well.

I took (approximately) 10s samples using an 8khz sampling profiler.

In the Nightmare Grand Cathedral (looking towards the stairs, at the rest of the level):
- Reduced total time from 757.34ms to 82.61ms (out of ~10000ms).
- Reduced average frame times by 2ms (though according to the graph, the gap may be as big as 9ms every N frames).

In the Hunter's Dream (in the spawn position):
- Reduced the total time from 486.50ms to 53.83ms (out of ~10000ms).
- Average frame times appear to be roughly the same.

These are profiles of the change vs the version currently in the main branch. These improvements also improve things in the `threading` branch. They might improve them even more in that branch, but I didn't bother keeping track of my measurements as well in that branch. I believe this change will still be useful even when that branch is stabilized and merged.

It could be there are other bottlenecks in rendering on this branch that are preventing this code from being the critical path in places like the Hunter's Dream, where performance isn't currently as constrained. That might explain why the reduction in call times isn't resulting in a higher frame rate.

* Implement SurfaceFormat with derived lookup table instead of switch

* Clang format fixes
2025-01-02 15:38:51 +02:00
..
common Fix for trophy decryption (#2005) 2025-01-01 19:11:30 +01:00
core hotfix: reset stop source on thread stop 2025-01-02 12:30:05 +01:00
images Help - improvement (#1522) 2024-12-09 18:47:26 +02:00
imgui The way to Unity, pt.3 (#1681) 2024-12-08 18:30:33 +02:00
input Motion controls (#1984) 2025-01-01 20:05:22 +02:00
qt_gui Update improper wording in translations 2025-01-02 10:07:48 +01:00
shader_recompiler shader_recompiler: Add swizzle support for unsupported formats. (#1869) 2024-12-31 06:14:47 +02:00
video_core Speed up LiverpoolToVK::SurfaceFormat (#1982) 2025-01-02 15:38:51 +02:00
.clang-format chore: Make shadps4 REUSE compliant 2024-02-23 23:33:43 +02:00
emulator.cpp Removed LLE libs (#2012) 2025-01-01 23:08:56 +02:00
emulator.h Loading font libs from title id folder (#1448) 2024-10-31 16:08:34 +02:00
main.cpp Fix SDL version cannot launch game using game ID (#1650) 2024-12-28 16:35:12 +02:00
sdl_window.cpp Motion controls (#1984) 2025-01-01 20:05:22 +02:00
sdl_window.h Devtools - Shader editing (#1705) 2024-12-09 21:11:11 +01:00
shadps4.qrc Help - improvement (#1522) 2024-12-09 18:47:26 +02:00
shadps4.rc file formats and qt (#88) 2024-03-01 00:00:35 +02:00