cpuConstant

Jump to navigation Jump to search

Well, I do have many HashMaps and several kdTrees but the fact that Java kicks in with GC at random times is certainly an issue. The init round should be relatively low CPU event on my bot part.

Strange part is that robocode does not report 37 mS long execution as a skipped turn while my "official" cpuConstant is about 6mS.

Beaming (talk)04:34, 17 October 2017

Kd-trees and HashMaps is fast and GC friendly IMO. Did u tried recalculate CPU constant?

Xor (talk)04:47, 17 October 2017
 

You mean the robocode properties file says CPU constant = 6ms?

Xor (talk)04:47, 17 October 2017

I did a bit of rounding but yes. Also, this is the number which I get if ask GUI to recalculate cpuConstant.

Beaming (talk)15:03, 17 October 2017
 

Robocode gives robots extra time at the beginning of a round. In addition, most of this time is probably taken away by one-time setup and initialization code, making your calculated CPU constant longer than it should be.

MultiplyByZer0 (talk)21:03, 17 October 2017

You do not have permission to edit this page, for the following reasons:

  • The action you have requested is limited to users in the group: Users.
  • You must confirm your email address before editing pages. Please set and validate your email address through your user preferences.

You can view and copy the source of this page.

Return to Thread:User talk:Beaming/cpuConstant/reply (9).