Multiple loops at the same time (fast and slow)

About Monkey 2 Forums Monkey 2 Code Library Multiple loops at the same time (fast and slow)

This topic contains 0 replies, has 1 voice, and was last updated by  cocon 1 year, 7 months ago.

Viewing 1 post (of 1 total)
  • Author
  • #10922


    This is one simple approach to have multiple loops in the game at the same time for drawing or updating operations. The basic idea is that not everything should be updated at the same time, some components need to be slow and others fast. For example casual AI decisions can run on 10 fps, animation update at 24, graphics rendering at 60 fps.

    Apart from updating different modules, there can be other usages, where simply treated as a list of timers. For example if the application runs some sort of validation functions every one second, saves automatically every 10 seconds.

    Perhaps the code might not be of a big deal, but the concept is a good idea, to avoid brute force updates and manage them in an organized different way.

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.