| 715 | } |
| 716 | |
| 717 | void 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 | |
| 734 | void PhysXSample::onShutdown() |
| 735 | { |
no test coverage detected