private void InitializeGameLoop(Action onUpdate, SKNativePaintGLSurfaceEventArgs e, bool isMultiThreaded)
        {
            // Run update loop and register for rendering events.
            onUpdate();

            _renderLoop = new RenderLoop();
            _renderLoop.Start(onUpdate);
            Initialized?.Invoke(this, e.Surface);
        }