[SDL] Milliseconds on the Mac

Nicholas Vining vining at pacificcoast.net
Sat Apr 29 12:35:47 PDT 2000


-----Original Message-----
From: Mike Powell <belar at earthling.net>
To: sdl at lokigames.com <sdl at lokigames.com>
Date: Saturday, April 29, 2000 2:48 AM
Subject: [SDL] Milliseconds on the Mac


>I was trying to figure out why my engine got so jumpy when I tried to
>time synchronize it with SDL_GetTicks(), when I looked through the
>source code for the timer... It seems that on MacOS it gets ticks in
>1/60th of a second, and then converts them to milliseconds. This is
>obviously inadequate for timing the physics in a real time game.
>However, I scanned Apple's docs and can't figure out how to get time
>at smaller intervals then 1/100th of a second, which is hardly
>better, so I don't know how to fix it. Does anybody know how I can
>coax proper millisecond time measurements out of the MacOS?

PPCs have a high-resolution timer which would be more adequate to the task.
I will toss you the source code once I boot up my Linux box.

Nicholas





More information about the SDL mailing list