Forum Discussion
Anonymous
11 years ago[Unity package included] FPS Display
Hello !
Someone on Reddit asked recently if we could add an fps counter in our demos. So I made a very small unity package to add an fps counter where you want.
This is a very simple asset :
-Drop the prefab in the scene, place it where you want, parent the game object if you want.
-(optional)uncheck "hide on load" in the script if you want the fps to be displayed when the scene starts.
-(Optional)create an input named "ShowFPS" on any key you want. It toggles the counter on and off.
For example, you can put it on a screen in your game, or just make it float in front of your OVR camera.


Download links :
Mega
UpToBox
Someone on Reddit asked recently if we could add an fps counter in our demos. So I made a very small unity package to add an fps counter where you want.
This is a very simple asset :
-Drop the prefab in the scene, place it where you want, parent the game object if you want.
-(optional)uncheck "hide on load" in the script if you want the fps to be displayed when the scene starts.
-(Optional)create an input named "ShowFPS" on any key you want. It toggles the counter on and off.
For example, you can put it on a screen in your game, or just make it float in front of your OVR camera.


Download links :
Mega
UpToBox
2 Replies
Replies have been turned off for this discussion
- cheerioboyExplorerThanks for this. note that it doesn't work in the Unity editor build - but it works when you do a full build and run. I've now found that my little project only runs around 40fps... time to optimize!
edit: weird. I switched the game to DX11 and now it runs at a solid 60fps (this was with Extended Desktop to the HMD)
edit2: solid 75 when running direct to rift with Direct HMD Access from Apps. Mirror to Display needs to be turned off. - Anonymous
"cheerioboy" wrote:
Thanks for this. note that it doesn't work in the Unity editor build - but it works when you do a full build and run.
I don't know why it doesn't run in your editor. It works in mine. The screenshots in the first posts were taken in the editor (if you look closely, you can see the light gizmo in the middle of the laptop screen in the second screenshot. You can also see the stat popup of Unity in the first screenshot - top right).
And for the 60hz you get, I suppose this is because of your other monitor : your graphics cards vsyncs with the 60 hz limited monitor and can't get to 75. That's why with the DK2, you shouldn't mirror.
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 10 months ago