Added a frametime parameter to the game event handler.