Robbo

01-09-2002, 08:19 AM

Hi people,

This is a question based on the fact that I am a mathematical genius who has no time for trivial problems http://www.opengl.org/discussion_boards/ubb/wink.gif

I have a frame-rate (in seconds) m_FPS. I have a target of rotating my object m_RPM times every minute. I also know the current angle of the object m_Angle.

How can I combine these such that I can calculate m_Inc on each iterate of my object and have it rotate m_RPM times a minute?

I'm not going to use WM_TIMER messages to help with this because there is a slight danger they will get queued up somewhere when the system is loaded.

This is a question based on the fact that I am a mathematical genius who has no time for trivial problems http://www.opengl.org/discussion_boards/ubb/wink.gif

I have a frame-rate (in seconds) m_FPS. I have a target of rotating my object m_RPM times every minute. I also know the current angle of the object m_Angle.

How can I combine these such that I can calculate m_Inc on each iterate of my object and have it rotate m_RPM times a minute?

I'm not going to use WM_TIMER messages to help with this because there is a slight danger they will get queued up somewhere when the system is loaded.