Hello - I thought I’d share this nifty little FPS Display script I hand held chatGPT 4o mini into making. I was surprised it turned out as functional as it did, and figure others might think its cool.
I remember many times I’ve tried having chatGPT and other LLM models write code to see what they come up with, and they often disappoint, but this turned out reasonably decent I think and might even be fairly useful for performance testing builds. I didn’t manually edit any of this, and only prompted 5-10 times to chatGPT before it landed on this:
FPSDisplay.cs (5.3 KB)
Comes in under 160 lines this old school OnGUI() FPS counter that reminds me a lot of variants I’ve seen floating around with graphs. Just slap that on a gameobject and call it a day.
PS I would have just posted the code but I haven’t got the hang of the new “discussions” layout yet.
Anyway hope its useful or at least interesting.