Skip to content
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

Update gfx_sdl2.cpp to fix macOS Metal Slowdown. #807

Merged
merged 1 commit into from
Jan 31, 2025

Conversation

ReddestDream
Copy link
Contributor

@ReddestDream ReddestDream commented Jan 29, 2025

Fixes stutter/inability to lock 60 consistently on macOS using Metal. May also provide performance benefits under OpenGL and Linux. This is the weird 57-58 fps issue noticed on Metal graphics on Macs for a long while.

Thanks to @Spodi, @Malkierian, ProxySaw, and Fenrir for their help on Discord getting this figured out! :D

Note: This version has been fixed to exclude other operating systems aside from macOS from modification.

Fixes stutter/inability to lock 60 consistently on macOS using Metal. May also provide performance benefits under OpenGL and Linux. This is the weird 57-58 fps issue noticed on Metal graphics on Macs for a long while.

Thanks to @Spodi, @Malkierian, ProxySaw, and Fenrir for their help on Discord getting this figured out! :D
@larsy1995
Copy link
Contributor

I reviewed and made changes to that code myself, it should be solid. It is for all intents and purposes the same as the original code, but with added support for macOS and only macOS.

@larsy1995
Copy link
Contributor

@briaguya-ai briaguya-ai merged commit e641b37 into Kenix3:main Jan 31, 2025
5 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