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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user