Difference between revisions of "Thread:Talk:CPU constant/I am not skipping turns/reply (3)"

From Robowiki
Jump to navigation Jump to search
 
(No difference)

Latest revision as of 23:04, 22 October 2017

I tried 1ms Thread.Sleep at the end of each turn. Interestingly enough, sometimes it takes up to 10 ms It was never promised that it will sleep as much as asked, but factor of 10 is just nuts.

I see no significant change in the number of skipped turns.

I still get Thread.Death sometimes against simple/fast bots.

I really wish robocode itself would start garbage collector or at least call tread.sleep. Recall our discussion where we observe that Thread.Death disappears when in the GUI we set the desired FPS just a notch below max. I think the only difference that robocode inserts sleep in the cycle if FPS is below max.