Skip to content
Snippets Groups Projects
DarkGod's avatar
DarkGod authored
Redisplay fix

Calling redisplay() multiple times per turn is notorious for causing lag. The worst offender is probably Smoke Bomb, and it just got stripped from Creeping Dark.
This commit introduces a new scheduleRedisplay method, which uses little-known feature of game:onTickEnd to ensure that a redisplay would only get called once per this tick, not causing any frame drops.
08f7300e
History
Name Last commit Last update