Discussion: Animation of images?
Afficher un message
Vieux 23/03/2007, 15h29   #9
Brunni
Super Modérateur
 
Date d'inscription: 10/11/2005
Localisation: Un pays avec beaucoup de banques
Messages: 3 226
Par défaut

What an idiot
This variable 'int i' is useless, I first planned to use it to do a simple loop like this
Code PHP:
for (i=0;i<time;i++)
  [...] 
It is a bad idea to rely on a loop like yours, because it does not only depends on the speed of the processor (222/333, or even 2000 if you're running on a PC ) but also on the opitmization of the compiler. If in the future GCC optimizes the loop differently, it will take a different execution time and thus your animation will run faster or slower... not a good thing
Brunni est déconnecté   Réponse avec citation