All pastes #258688 Raw Edit

7 moi

public text v1 · immutable
#258688 ·published 2006-11-26 19:45 UTC
rendered paste body
		//ecoulance = SDL_GetTicks() - temps_precedent;
            // avant la boucle
		temps_precedent = SDL_GetTicks();
[...]

	//limite un peu l'ecoulance (1000/50=20)
	//(comportement bizarre)
	//if(ecoulance < 20)
      if(SDL_GetTicks() > (temps_precedent + 1000 / 60) ) // 60=fps voulu
	{
            //affichage
            temps_precedent = SDL_GetTicks();
		//SDL_Delay(20-ecoulance);
		//temps_precedent += (20-ecoulance);
	}