Allow (N+1)/2 update tiles for N cores to be active

This commit is contained in:
Mike Primm 2011-10-07 18:29:38 -05:00
parent a2df443aeb
commit 11d5e29a9f

View File

@ -633,7 +633,7 @@ public class MapManager {
},
(int) (configuration.getDouble("renderinterval", 0.5) * 1000),
configuration.getInteger("renderacceleratethreshold", 30),
(int)(configuration.getDouble("renderaccelerateinterval", 0.2) * 1000), 1);
(int)(configuration.getDouble("renderaccelerateinterval", 0.2) * 1000), (Runtime.getRuntime().availableProcessors()+1)/2);
/* On dedicated thread, so default to no delays */
timeslice_int = (long)(configuration.getDouble("timesliceinterval", 0.0) * 1000);