screen doesn't redraw when cpu in control!

BlitzMax Forums/BlitzMax Programming/screen doesn't redraw when cpu in control!

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

You might want to split your "action" code over several cycles, rather than trying to do it all in the same frame.
Not difficult to do. I used the same method for some path-finding AI, when I had *many* bots trying to recalculate paths over a large, changing map. The closest ones (to the terrain change) would be processed first, while those further away would be processed several cycles later - therefore spreading the load out and stopping stutter/hangs.