protected override void OnLoad(EventArgs e)
{
Renderer.DetermineMaxAFLevel();
//Initialise the loader thread queues
jobs = new Queue<ThreadStart>(10);
locks = new Queue<object>(10);
Renderer.Initialize();
MainLoop.UpdateViewport(MainLoop.ViewPortChangeMode.NoChange);
MainLoop.InitializeMotionBlur();
Loading.LoadAsynchronously(MainLoop.currentResult.RouteFile, MainLoop.currentResult.RouteEncoding, MainLoop.currentResult.TrainFolder, MainLoop.currentResult.TrainEncoding);
LoadingScreenLoop();
//Add event handler hooks for keyboard and mouse buttons
//Do this after the renderer has init and the loop has started to prevent timing issues
Keyboard.KeyDown += MainLoop.keyDownEvent;
Keyboard.KeyUp += MainLoop.keyUpEvent;
Keyboard.KeyRepeat = false;
Mouse.ButtonDown += MainLoop.mouseDownEvent;
Mouse.Move += MainLoop.mouseMoveEvent;
}
protected override void OnClosing(CancelEventArgs e)