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 - SDL_RENDERER_PRESENTVSYNC does not vsync in 2.0.10 on Mojave?
Summary: SDL_RENDERER_PRESENTVSYNC does not vsync in 2.0.10 on Mojave?
Status: RESOLVED INVALID
Alias: None
Product: SDL
Classification: Unclassified
Component: video (show other bugs)
Version: 2.0.10
Hardware: x86_64 macOS 10.14
: P2 normal
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-10-29 23:48 UTC by Brad Smith
Modified: 2019-10-30 00:30 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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!