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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

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