Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature currently requires accessing the site using the built-in Safari browser.
// am Ende Zeit nehmen
unsigned int endTime;
endTime = SDL_GetTicks();
// Differenz berechnen (tatsächliche Dauer der Schleife
unsigned int diffTime = endTime-startTime;
// 50 FPS abwarten (20 Millisekunden)
if(diffTime<20) // <--- das ist W I C H T I G !
SDL_Delay(20-diffTime);