mirror of https://github.com/axmolengine/axmol.git
Merge pull request #7782 from liang8305/v3
mLastTickInNanoSeconds is the renderStart
This commit is contained in:
commit
1643c29a00
|
@ -100,11 +100,8 @@ public class Cocos2dxRenderer implements GLSurfaceView.Renderer {
|
||||||
/*
|
/*
|
||||||
* Render time MUST be counted in, or the FPS will slower than appointed.
|
* Render time MUST be counted in, or the FPS will slower than appointed.
|
||||||
*/
|
*/
|
||||||
final long renderStart = System.nanoTime();
|
this.mLastTickInNanoSeconds = System.nanoTime();
|
||||||
Cocos2dxRenderer.nativeRender();
|
Cocos2dxRenderer.nativeRender();
|
||||||
final long renderEnd = System.nanoTime();
|
|
||||||
final long renderInterval = renderEnd - renderStart;
|
|
||||||
this.mLastTickInNanoSeconds = renderEnd - renderInterval;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue