Skip to content
Snippets Groups Projects
Commit 08f7300e authored by DarkGod's avatar DarkGod
Browse files

Merge branch 'redisplay_fix' into 'master'

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.
parents 57987f3e cfb4e835
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment