The problem with the code bot builder posted (which is what Marks Castle demo uses) is that on a really slow machine the game can get slower and slower until it locks up. Basically it cannot complete the required fps in one iteration of the for loop, so next time round the number of ticks goes up, and so on.
What you need to do is to limit the number of ticks so that this does not happen. Adding something like
would do the trick.
I was really just trying to point out that the 'fix' for this problem that is posted on blitzcoder actually breaks the frame rate limiting.
What you need to do is to limit the number of ticks so that this does not happen. Adding something like
if ticks > 10 then ticks = 10
would do the trick.
I was really just trying to point out that the 'fix' for this problem that is posted on blitzcoder actually breaks the frame rate limiting.