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 309

Summary: SDL_Delay() on Mac OS X...
Product: SDL Reporter: Ryan C. Gordon <icculus>
Component: timerAssignee: Ryan C. Gordon <icculus>
Status: RESOLVED INVALID QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: 1.2.11   
Hardware: PowerPC   
OS: Mac OS X (All)   

Description Ryan C. Gordon 2006-08-26 13:19:18 UTC
The current Mac code for SDL_Delay() yields the CPU to other processes in a loop until the requisite ticks have passed. It appears that OS X either takes this as advisory and doesn't yield if there isn't something explicitly waiting for the CPU, or these system APIs have become no-ops for binary compatibility in Carbon.

   http://www.libsdl.org/pipermail/sdl/2006-August/076182.html

We should ifdef these to only be used on OS 9, and have Mac OS X use the POSIX versions, which will put the process to sleep for X ticks.

--ryan.
Comment 1 Ryan C. Gordon 2006-08-27 16:17:23 UTC
Invalid: Mac OS X uses the POSIX codepath, not the "macos" one, which is for OS 9.

--ryan.