Title / Description
Code // some C++ code void Game::mainLoop() { timeSinceLastUpdate += delta; while (timeSinceLastUpdate > TimePerFrame) { // using fixed delta timeSinceLastUpdate -= TimePerFrame; processEvents(); update(TimePerFrame); } draw(window); }
Author
Highlight as C C++ CSS Clojure Delphi ERb Groovy (beta) HAML HTML JSON Java JavaScript PHP Plain text Python Ruby SQL XML YAML diff code