Stupid_2D's picture

High CPU Usage + Soloution

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 , ...)