I\'ve made my own Game Loop with C++ and SDL based on those articles:
Game Programming Patterns: http://gameprogrammingpatterns.com/game-loop.html
Fix Your Tim