Hi all, i have a question :
suppose i am making a wheel rotating :
float rot = 0.0f;
// in loop
rot += fElapsedtime;
it works fine like this, but the number gets unlimited bigger and bigger.
Now what is better for CPU performance?, using a if that limits the rotation ? :
// in loop
rot += fElapsedtime;
if( rot > Pi )rot -= Pi;
What is the better choise and why ?
thanks in advance