fix: SMOD.ScreenShader bugfix and performance improvement for Android build#1276
fix: SMOD.ScreenShader bugfix and performance improvement for Android build#1276dddfault wants to merge 8 commits intoSteamodded:mainfrom
SMOD.ScreenShader bugfix and performance improvement for Android build#1276Conversation
|
Same issue exist on macOS and every device that has https://love2d.org/wiki/love.window.getDPIScale Or even better remove |
|
ScreenShader performance changes need further review. The bugfix works, applying it on main separately from this PR |
|
for the CRT performance pass need review from other user especially on lower end mobile devices. because on my end it's confirmed. CRT being applied twice. first from the game itself, and via SMOD.ScreenShader function. |
better and stable approach using G.CANVAS:getDimensions()
|
Need suggestions for any user that played this game on mobile devices. Do you really use game CRT shader? if so, then the current implementation of single-pass kinda useless since CRT shader now called via SMOD.ScreenShader, so the next custom shader will call ping-pong rendering and that's gonna tank performance on lower end mobile devices. Also I changed to use G.CANVAS:getDimensions(), this will fix ping-pong rendering behavior on high-dpi, no more skewing and weird canvas rendering artifact. Tested on Windows and Android. |
|
I play on my phone and the first thing that i did when opening Balatro was to go to settings and disable the CRT effect Also how can i download the files that you modified ? |
|
@Abdallahpr1 you can download from here: https://github.com/dddfault/smods/archive/refs/heads/main.zip |
|
@Aurelius7309 thanks Tried it, it gives the same bug the unmodified smods version does |
|
Hmm.. prolly the |
|
Same thing |
|
It's likely because of my phone's soc, poco x7 pro |
|
oh yeah, I remember it. I have encountered same issue on UNISOC phones. definitely it's game shader because i ran my own custom shader with SMOD.ScreenShader() function and haven't encountered that issue so far. |
|
If you found a fix pls ping me so i can try, if not I'll just stick to version 1016c |


Improve Android performance and rendering behavior for
SMOD.ScreenShader.These changes improve performance and ensure consistent behavior across Android devices.
Additional Info: