mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-04-26 08:15:59 +03:00
[GH-ISSUE #1360] Why is shader compiled every time? #447
Labels
No labels
Bloodborne
bug
contributor wanted
documentation
enhancement
frontend
good first issue
help wanted
linux
pull-request
question
release
verification progress
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/shadPS4#447
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @par274 on GitHub (Oct 12, 2024).
Original GitHub issue: https://github.com/shadps4-emu/shadPS4/issues/1360
I don't know how the emulator works, but why does the shader have to be compiled from scratch for each entry?
In all other emulators, the shader is saved to disk after being compiled, and nothing seen in the second entry will cause a freeze.
For example, as I showed in the video, normally you should experience momentary freezes only once, but doesn't compiling shaders every time you enter put more load on RAM than necessary?
https://www.youtube.com/watch?v=u_O1QONN3Lc
@birthtothunder commented on GitHub (Oct 13, 2024):
There's no shader cache.
@par274 commented on GitHub (Oct 13, 2024):
Yes, I noticed that. I think it's a most important thing.
@cuesta4 commented on GitHub (Oct 13, 2024):
Sometimes shader cache will mask problems and make it difficult to see if they've been solved. It's something usually reserved for when emulators are at a more mature state, and the highest priority becomes quality of life features.
Right now it's better to compile the shaders everytime, so we can quickly identify fixes and regressions.
@wojek07 commented on GitHub (Oct 13, 2024):
However, will such feature be actually needed at some point in future? If so then, it makes sense to implement this and just disable it by default.
@par274 commented on GitHub (Oct 13, 2024):
There are still memory leak problems at the moment, can we say that this is the cause? If so, there may be an option to disable cache, but this feature needs to be there.
Yeah, I'm on the same point as you.
@rafael-57 commented on GitHub (Oct 13, 2024):
The emulator is very early in progress, the way shaders are handled changes very frequently with nightly builds. There are other things to do before implementing a shader cache
@Beworgen commented on GitHub (Nov 16, 2025):
Can you make the shader compiler a option so that only people that update the games compatibility need to disable it and it will show if it is disabled or not in the log?