Game Loop

class realtime.threadingGameLoop.ThreadingGameLoop[source]

Game loop subsystem for realtime simulation. Time will only progress when a step call is made.

__init__()[source]

Constructor

interrupt()[source]

Interrupt the waiting thread

step()[source]

Perform a step in the simulation. Actual processing is done in a seperate thread.

wait(delay, func)[source]

Wait for the specified time, or faster if interrupted

Parameters:
  • time – time to wait
  • func – the function to call