Merge pull request #7782 from liang8305/v3

mLastTickInNanoSeconds is the renderStart
This commit is contained in:
minggo 2014-08-14 18:11:41 +08:00
commit 1643c29a00
1 changed files with 1 additions and 4 deletions

View File

@ -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;
} }
} }