Skip to content

Conversation

@HecaiYuan
Copy link
Contributor

CPU acceleration runs faster than integrated graphics on Loongson at present. @slouken @madebr

@slouken
Copy link
Collaborator

slouken commented Nov 10, 2025

Is this something that's likely to be improved in the future? We generally don't add SDL workarounds for buggy drivers, instead we rely on the upstream project to fix their bugs.

This kind of hack will also prevent someone who wants to use SDL to verify performance of improved drivers.

I'm inclined not to accept this change. If people really want to force software rendering, they can set the environment variable SDL_RENDER_DRIVER=software

@jinboson
Copy link

jinboson commented Nov 11, 2025

Thanks for your clarification. It's NOT bugs of LG100 series, which is just not very good in performance when using them to render videos on some GPU-heavy applications. The coming LG200 series has improved a lot in performance, which does not need these changes any way. And the initial intention was to switch to software render by detecting not by manually setting something else. We thought that it was not good for users to do that. But we respect your decision.

@slouken
Copy link
Collaborator

slouken commented Nov 13, 2025

I'll leave this open for consideration.

@slouken
Copy link
Collaborator

slouken commented Nov 14, 2025

After consideration, I'll go ahead and merge this, thanks!

@slouken slouken merged commit c44d37b into libsdl-org:SDL2 Nov 14, 2025
34 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.

3 participants