-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Retroarch: Add libretro glsl and slang shaders if platform is not rpi #3395
Conversation
… rpi Add an shaders/retropie folder which contains the current RetroPie/common-shaders:rpi branch, so it is possible to use the same shaders as a rpi user. Another advantage: CRT-PI is faster then the most libretro crt shaders.
I assume this will cause issues though for existing configs - maybe we should put a notice somewhere or at least have a topic on the forum ? |
It will certainly interfere with current configs. So it’s a good idea to add a notice. Our master branch is neglected. I cannot load shaders of folder retropie because all precision fixes of branch ‚rpi‘ are missing. The other shaders can be loaded but all upstream changes and fixes are missing. Non of the current shaders can be used if video driver is glcore or vulkan. |
Yeah - I agree with it in general. Perhaps we should make it so we have a similar folder structure for the rpi also - but obviously this is more config breakage unless we put it elsewhere and symlink. |
Really ugly solution: |
What about pi4 ? I think this PR doesn't allow usage of slang shaders on pi4, while it should also support vulkan & glcore (note that glcore won't be forced on gles platforms). Note that glcore should probably always be prefered over gl on platforms compatible with both : from the tests i did last year it was slightly faster due to less retroarch overhead. |
Isn't For |
I'm not going to implement the PR as is anyway most likely. Just was referencing it. I've not yet decided how I will implement it. |
@cmitu |
@barbudreadmon does it make sense to enable glcore for Pi4? Rpi optimized glsl shaders will not work by default. Should we test if glcore + rpi optimized ported slang shaders run better than gl + rpi optimized shaders? |
@gizmo98 you should probably give it a try |
The current RetroPie/common-shaders master branch is outdated (last update 2016). Libretro has an own glsl repo with glsl now. Common-shaders has no slang shaders for video drivers glcore and vulkan.
This PR adds three folders in the shader directory if platform is not rpi.
shaders/slang: Contains libretro slang shaders for drivers glcore/vulkan
shaders/glsl: Contains libretro glsl shaders for driver gl
shaders/retropie: Contains common-shaders branch rpi shaders for driver gl