diff --git a/CodeWalker/Rendering/DirectX/DXManager.cs b/CodeWalker/Rendering/DirectX/DXManager.cs index d9feffb..534083f 100644 --- a/CodeWalker/Rendering/DirectX/DXManager.cs +++ b/CodeWalker/Rendering/DirectX/DXManager.cs @@ -281,6 +281,10 @@ namespace CodeWalker.Rendering Thread.Sleep(10); //don't hog CPU when minimised if (dxform.Form.IsDisposed) return; //if closed while minimised } + if (Form.ActiveForm == null) + { + Thread.Sleep(100); //reduce the FPS when the app isn't active (maybe this should be configurable?) + } Rendering = true; if(!Monitor.TryEnter(syncroot, 50))