FPS Counter script. Spark AR, Instagram
With this script you can get the Frames Per Second (FPS) value, which is useful when testing performance of your projects. Also it allows you to get Frame Time value, calculated in ms, which equals time required to render previous frame.
Script is not obfuscated, so you can view all code and learn from it.
Installation just in a few clicks:
- Drag FPSCounter.js to project's assets
- Create 2dText and name it "fps". Script will automatically find this text object and set it's value
Note: If you want to get Frame Time, just give 2dText this exact name: "frameTime"
Contact me on Telegram: t.me/rokkoeffe
Join our Telegram chat: t.me/sparkarchat
Rate ⭐️⭐️⭐️⭐️⭐️ if you want more templates like this.
You'll get FPSCounter.js script file