Unfortunately I am unable to get the new concept of the Timer from version 2.01.
Since there are no more onTimer and onProcess events how do you handle these now? Do I have to check for these Tokens? And is there something else for the maxframerate property to limit the framerate for the rendering?
Of course I looked up the examples but those don't seem to use the timer, some just create it but nothing more. No similar thing to onProcess.
Edit: So, as I could find out the Tokens value gets increased according to the speed setting so by checking if it's not zero at the end of the main rendering event I can call the process loop? Is this the way now to do it? And if the rendering loop is slower than the speed setting will "Tokens" be 2 or more then and I need to call the processloop that often to ensure processing happens at the specified speed? Still don't know how to limit the rendering (old onTimer) framerate when vsync is off though.
Since there are no more onTimer and onProcess events how do you handle these now? Do I have to check for these Tokens? And is there something else for the maxframerate property to limit the framerate for the rendering?
Of course I looked up the examples but those don't seem to use the timer, some just create it but nothing more. No similar thing to onProcess.

Edit: So, as I could find out the Tokens value gets increased according to the speed setting so by checking if it's not zero at the end of the main rendering event I can call the process loop? Is this the way now to do it? And if the rendering loop is slower than the speed setting will "Tokens" be 2 or more then and I need to call the processloop that often to ensure processing happens at the specified speed? Still don't know how to limit the rendering (old onTimer) framerate when vsync is off though.

Comment