Unity GUI Performance

So, I disabled my GUI script, which simply shows a health bar and a button, and I noticed my frame rate increased by 100 FPS. (Went down to 700 FPS from 800 FPS.)

Am I the only one that thinks a 12.5% FPS decrease is a bit much for displaying two static images? I personally never liked UnityGUI, but now that I know it’s such a performance killer, it makes me want to rip my hair out :x

comparing fps drops at such high fps rates is totally useless as idle to non-idle will always impose a hit, commonly even more massive.

you should worry about 10% drops if you are in the 100fps and below range.

as for the why: because OnGUI is called multiple times per frame, basically once for every single event

That’s something I thought of, but wasn’t 100% about. Thanks for clearing that up – I’ll do more testing with more things on screen later on and see if the impact is still as great.

Thanks dreamora!