Simulation runs in fixed steps of 1/50 s (50 steps a second) instead of 1/20 s, with at most twelve catch-up steps in one frame

This commit is contained in:
Richard Zink committed 2026-11-04 10:04:44 +01:00
1 parent dd4bb75b24
commit 35ddfa134c
4 files changed
+9 -9

No files matched your search

+1 -1
View File
@@ -239,7 +239,7 @@ mod tests {
a.queue(Act::Pickup { ent: ogre });
a.queue(Act::Drop { x: drop_at.0, y: drop_at.1 });
for _ in 0..20 {
a.update(0.05);
a.update(STEP);
}
// the same game driven like a match (one turn with all commands, then the same steps)