
High CPU Usage + Soloution
Posted Friday, 16 September, 2011 - 14:49 by Stupid_2D| Project: | Texture Utility Library |
| Version: | 0.9 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | open |
Description
I dont know where to post this,
but i took a look at the Text-Part and noticed high CPU usage.
This is due to the fact that it calls ComputeAspectRatio waaaay to often.
Fix is simple, add a global variable called AspectRatio and let everything use this var.
Only call ComputeAspectRatio when the AspectRatio changes ( OnResize , ...)

