Reduce SchedulerImpl.TIME_SLICE from 100ms to 16ms
Bug: issue 8838
Change-Id: I4ab643b4d1ddeec5360c459a0605e449efdac34c
diff --git a/user/src/com/google/gwt/core/client/impl/SchedulerImpl.java b/user/src/com/google/gwt/core/client/impl/SchedulerImpl.java
index fd20d54..8debafb 100644
--- a/user/src/com/google/gwt/core/client/impl/SchedulerImpl.java
+++ b/user/src/com/google/gwt/core/client/impl/SchedulerImpl.java
@@ -110,6 +110,7 @@
/**
* The delay between flushing the task queues.
+ * Due to browser implementations the actual delay may be longer.
*/
private static final int FLUSHER_DELAY = 1;
@@ -121,8 +122,10 @@
/**
* The amount of time that we're willing to spend executing
* IncrementalCommands.
+ * 16ms allows control to be returned to the browser 60 times a second
+ * making it possible to keep the frame rate at 60fps.
*/
- private static final double TIME_SLICE = 100;
+ private static final double TIME_SLICE = 16;
/**
* Extract boilerplate code.