Skip to content

Commit e7ee137

Browse files
committed
Change android FPS_CONTROL_THRESHOLD type to long
1 parent 4ed8f81 commit e7ee137

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/platform/android/java/src/dev/axmol/lib/AxmolRenderer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public class AxmolRenderer implements GLSurfaceView.Renderer {
3838

3939
// The final animation interval which is used in 'onDrawFrame'
4040
private static long sAnimationInterval = (long) (1.0f / 60f * AxmolRenderer.NANOSECONDSPERSECOND);
41-
private static float FPS_CONTROL_THRESHOLD = 1.0f / 1200.0f * AxmolRenderer.NANOSECONDSPERSECOND;
41+
private static long FPS_CONTROL_THRESHOLD = (long) (1.0f / 1200.0f * AxmolRenderer.NANOSECONDSPERSECOND);
4242

4343
// ===========================================================
4444
// Fields

0 commit comments

Comments
 (0)