precision timing
hey,
i''m currently using the timer functions from NeHe''s tutorials to control the time flow in my program. the problem is that time''s flying awfully fast - a rough estimate would be 1.8 seconds per each real life second (i get 18 fps reports every ten seconds).
this used to be the case on my old cpu, a P3 as it is on the shiny new AthlonXP. i haven''t messed with the timer resolution (still 1/1000) and frequency (still 1000). is the high resolution counter "out of the 1000 ms sync" or do i need to do sth else to get perfect 1000 ms intervals?
thanks,
crispy
"Literally, it means that Bob is everything you can think of, but not dead; i.e., Bob is a purple-spotted, yellow-striped bumblebee/dragon/pterodactyl hybrid with a voracious addiction to Twix candy bars, but not dead."- kSquared
I''m not sure i get your problem...*BUT* i think your''e asking for some sort of frameskipping. right?!.
Anyway, frameskipping creates constant framerate of your choice on faster CPU, and makes your code look jerky on slow CPU.
Anyway, frameskipping creates constant framerate of your choice on faster CPU, and makes your code look jerky on slow CPU.
______________________________Only dead fish go with the main-stream.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement