Refactoring : the dispatcher contains the main loop.
It's a better way to separate clearly the engine and the renderer.