CARLA Simulator: Difference between revisions
Line 28: | Line 28: | ||
Normal games run at realtime, i.e. frames are generated as fast as possble (or limited by vsync) and the time between frames set based on the elapsed time. For demos and games, this is fine. | Normal games run at realtime, i.e. frames are generated as fast as possble (or limited by vsync) and the time between frames set based on the elapsed time. For demos and games, this is fine. | ||
However for simulations, you will want to fix the time between frames to a constant value. | However for simulations, you will want to fix the time between frames to a constant value. This allows faster-than-realtime simulations on more powerful hardware and slower-than-realtime simulations on slower hardware. | ||
Below sets the timestep to <code>1/30</code> seconds per frame. | Below sets the timestep to <code>1/30</code> seconds per frame. |