🎉 Celebrating 25 Years of GameDev.net! 🎉
Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!
Counters
What is the best method for doing counters/timers? I personally do mine by dividing a counter (how much something is done each second) by my fps, but even on my crappy RagePro I can often pull over 100fps which can cause my GLfloats to get too small and no longer work at all. I don''t really want to waste memory using GLdoubles. I was thinking of using a timer which is just called when the specific amount of time has passed, but this won''t work for my physics routines. suggestions?
Morgan
If you work with win32, make a multimedia timer with timeSetEvent(delay_in_milliseconds,precision_in_milliseconds,pointer_to_callback_function,argument_passed_to_callback_function,TIME_PERIODIC/TIME_CALLBACK_FUNCTION);
Visit our homepage: www.rarebyte.de.st
GA
Visit our homepage: www.rarebyte.de.st
GA
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement