Jump to content

How can I speed up the game updates?


Recommended Posts

Hi everyone,


I searched in the API and in the code source and I've not found what I want.


Let's say there's 30 render cycle per second ( 30 fps then )

There are 30 update cycle per second, 1 for each render cycle.

I would like to be able to tell the engine to execute more update cycle per render cycle. So the game is accelerated without adding useless render cycles.


I've already tried to call game.update() during the update function I give to the game constructor ( and blocked recursivity ), but it didn't worked ( and I think it's logic because I ask to update during a non finished update... )



Is there a way to do what I want to do properly? ( or anything that has the same goal )

I think I can modify by myself the object game to do this, but I don't think it would be clean.


The game I am developping is a small evolutionnary simulation, pray and predator live in the same place, pray are reproducing, diing, and evolving.

In this kind of simulation a speedup tool is necessary.



Thanks in advance !

Link to comment
Share on other sites


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...