MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/PhysX / displayFPS

Method displayFPS

physx/samples/samplebase/PhysXSample.cpp:717–732  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

715}
716
717void PhysXSample::displayFPS()
718{
719 if(!mDisplayFPS)
720 return;
721
722 char fpsText[512];
723 sprintf(fpsText, "%0.2f fps", mFPS.getFPS());
724
725 Renderer* renderer = getRenderer();
726
727 const PxU32 yInc = 18;
728 renderer->print(10, getCamera().getScreenHeight() - yInc*2, fpsText);
729
730// sprintf(fpsText, "%d visible objects", mNbVisible);
731// renderer->print(10, mCamera.getScreenHeight() - yInc*3, fpsText);
732}
733
734void PhysXSample::onShutdown()
735{

Callers 1

onRenderMethod · 0.80

Calls 3

getFPSMethod · 0.80
getScreenHeightMethod · 0.80
printMethod · 0.45

Tested by

no test coverage detected