Bicubic's picture

Clocks

I would like to be able to have various actors in game to have different rates at which their Update method is called (to allow actors off screen to update at slower rates for example). This is similar to the way GameWindow has different rates for OnRenderFrame and OnUpdateFrame.

Can someone suggest how to achieve this synchronously? I understand that the best result I can get is an approximation limited by GameWindow's update rate, but not sure how to get the closest result.


Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Hortus Longus's picture

The updates of my actors (onscreen or not) do not depend on the GameWindow-Update, but they carry along their own counter, which releases an event if an update is due.