pcsx2/.github
Connor McLaughlin 0f24048cd5 GameDatabase: Add gpuPaletteConversion = 2 value
Some games (e.g. Metal Gear Solid 2) use large-ish textures, with a
bunch of different CLUTs/palettes, depending on the draw. Kind-of like a
texture atlas.

This causes issues when texture preloading is enabled, as both VRAM and
GS CPU thread usage increase proporiately to the number of texture:clut
pairs (since it has to be hashed).

An alternative to disabling preloading, which is what we currently do,
is enabling GPU palette conversion in these games. Even though we
ever-so-slightly increase the GPU load due to having to do shader
sampling, the CPU load on the GS thread is considerably reduced, and
overall performance is greater. In theory it'll also achieve higher
cache hit rates on the GPU, since we're not duplicating a bunch of
textures.

However, as a general rule of thumb, we don't want to encourage people
to enable paltex, as most games run slower with it on. So, what this PR
does, is add a GameDB option for these types of games, to enable paltex
when texture preloading is set to full/hash cache, but otherwise leave
the setting alone. The best of both worlds.

NOTE: I've also forced paltex=0 for Spider-Man 2, as it uses a massive
number of palettes which can cause descriptor issues in DX12/Vulkan. A
perfect example of where you *don't* want to use paltex.
2022-09-15 12:24:43 +01:00
..
ISSUE_TEMPLATE Github: clean-up issue templates 2022-07-16 21:41:58 +01:00
workflows GameDatabase: Add gpuPaletteConversion = 2 value 2022-09-15 12:24:43 +01:00
CONTRIBUTING.md Misc: fix some codacy warnings 2022-08-26 22:58:08 +02:00
FUNDING.yml Adding FUNDING file 2022-05-23 19:20:19 +01:00
PULL_REQUEST_TEMPLATE.md github: Remove now redundant comment in PR template 2021-04-29 18:41:34 +02:00
dependabot.yml ci: Automatically watch for updates on github actions 2020-10-06 00:47:53 +01:00
labeler.yml github labeler: Remove nsis. 2022-06-10 15:12:03 +02:00