Added getRecentFrameRate().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4134 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -160,6 +160,14 @@ public class JmeApp
|
|||||||
return oldTargetFPS;
|
return oldTargetFPS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the frames per second averaged over the last 32 frames.
|
||||||
|
*/
|
||||||
|
public float getRecentFrameRate ()
|
||||||
|
{
|
||||||
|
return _timer.getFrameRate();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Enables or disables the update and render part of the
|
* Enables or disables the update and render part of the
|
||||||
* update/render/process events application loop.
|
* update/render/process events application loop.
|
||||||
|
|||||||
Reference in New Issue
Block a user