Skip to content

Add aggressive shader caching to slang shader backend#18933

Merged
LibretroAdmin merged 5 commits intolibretro:masterfrom
hizzlekizzle:master
Apr 21, 2026
Merged

Add aggressive shader caching to slang shader backend#18933
LibretroAdmin merged 5 commits intolibretro:masterfrom
hizzlekizzle:master

Conversation

@hizzlekizzle
Copy link
Copy Markdown
Collaborator

Description

This adds caching of SPIR-V and metadata to the slang shader backend, which significantly reduces shader compile times on large presets like the Mega Bezel shaders.

I didn't add an option in the menu for this, since it seems like a thing that's generally a good idea, but it could be done.

Related Issues

Couldn't find any, but people commonly complain about the long stalls, especially when loading new games or toggling fullscreen on/off

Related Pull Requests

none

Reviewers

@warmenhoven would you be able to try/test this on Apple gear?

@gouchi
Copy link
Copy Markdown
Member

gouchi commented Apr 20, 2026

I confirm it makes the shader loading a lot faster (tested on Linux).

Congratulations !

@LibretroAdmin LibretroAdmin merged commit 2020a2e into libretro:master Apr 21, 2026
20 of 38 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants