We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 4848

Summary: SDL_RENDERER_PRESENTVSYNC does not vsync in 2.0.10 on Mojave?
Product: SDL Reporter: Brad Smith <rainwarrior+libsdl>
Component: videoAssignee: Ryan C. Gordon <icculus>
Status: RESOLVED INVALID QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2 CC: icculus
Version: 2.0.10   
Hardware: x86_64   
OS: macOS 10.14   

Description Brad Smith 2019-10-29 23:48:20 UTC
Using SDL_RENDERER_PRESENTVSYNC does not appear to do any vsync wait in 2.0.10 + Xcode 10 + Mojave macOS 10.14.1

An old version of my app built with 2.0.8 and XCode 9 runs as expected in the same environment, but the newer version does not vsync at all and ends up using 100% of a CPU core and producing uneven framerate.
Comment 1 Ryan C. Gordon 2019-10-30 00:20:05 UTC
This is a bug in Mojave; they fixed it after 10.14.1. 10.14.5 is the latest version, please run software update and it should fix the problem.

--ryan.
Comment 2 Brad Smith 2019-10-30 00:30:06 UTC
Thank you for the explanation!