Fix high CPU usage when not moving

Refreshing the render source isn't necessary since it will automatically be updated whenever a given chunk is updated. (and because we don't currently have a versioning system to prevent re-loading the same data)
This commit is contained in:
James Seibel
2023-03-02 07:33:40 -06:00
parent 022a288c97
commit 382b006210
@@ -100,6 +100,7 @@ public class LodRenderSection
public void tick(LodQuadTree quadTree, IDhClientLevel level)
{
// get the renderSource if it has finished loading
if (this.loadFuture != null && this.loadFuture.isDone())
{
this.renderSource = this.loadFuture.join();
@@ -110,11 +111,6 @@ public class LodRenderSection
this.renderSource.enableRender(level, quadTree);
}
}
if (this.renderSource != null)
{
this.renderSourceProvider.refreshRenderSource(this.renderSource);
}
}
public void disposeRenderData()