Search found 2 matches

by YellowButShort
Mon Apr 06, 2020 5:48 am
Forum: Support and Development
Topic: Weird love.thread behaviour or my struggle with loading screen
Replies: 4
Views: 4117

Re: Weird love.thread behaviour or my struggle with loading screen

What I instead suggest is to break up your generation to 'chunks', in that you keep track of how many tiles you have processed that frame. If the amount exceeds some predetermined value just halt the generation, store where you left off, and pick up the loop from there the next frame. You could the...
by YellowButShort
Sat Apr 04, 2020 7:24 pm
Forum: Support and Development
Topic: Weird love.thread behaviour or my struggle with loading screen
Replies: 4
Views: 4117

Weird love.thread behaviour or my struggle with loading screen

Im actually making a tile-based game that generating tiles ingame, but the bigger map is, the longer it takes to actually generate a map. While generating, screen leaves empty and nothing happens. So I decided to make a loading screen where player can see how long he has to wait. But generator makes...