diff --git a/WorldForm.cs b/WorldForm.cs index 459e56d..c8a53d9 100644 --- a/WorldForm.cs +++ b/WorldForm.cs @@ -4238,13 +4238,23 @@ namespace CodeWalker EnableDLCModsUI(); + Task.Run(() => { + while (formopen && !IsDisposed) //renderer content loop + { + bool rcItemsPending = Renderer.ContentThreadProc(); + + if (!rcItemsPending) + { + Thread.Sleep(1); //sleep if there's nothing to do + } + } + }); + while (formopen && !IsDisposed) //main asset loop { bool fcItemsPending = gameFileCache.ContentThreadProc(); - bool rcItemsPending = Renderer.ContentThreadProc(); - - if (!(fcItemsPending || rcItemsPending)) + if (!fcItemsPending) { Thread.Sleep(1); //sleep if there's nothing to do }