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 - SDL_Delay() on Mac OS X...
Summary: SDL_Delay() on Mac OS X...
Status: RESOLVED INVALID
Alias: None
Product: SDL
Classification: Unclassified
Component: timer (show other bugs)
Version: 1.2.11
Hardware: PowerPC Mac OS X (All)
: P2 normal
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-26 13:19 UTC by Ryan C. Gordon
Modified: 2006-08-27 16:17 UTC (History)
0 users

See Also:


Attachments

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