This commit is contained in:
Aigars Zeiza 2025-06-27 09:42:47 +03:00
parent 43d1d36b6a
commit d55bbc535c

View File

@ -1380,7 +1380,7 @@ export class Planet extends RenderNode {
cam.checkFly();
// free memory
if (this._createdNodesCount > MAX_NODES && this._distBeforeMemClear > this._minDistanceBeforeMemClear) {
if (this._createdNodesCount > this._maxNodes && this._distBeforeMemClear > this._minDistanceBeforeMemClear) {
this.terrain!.clearCache();
this.memClear();
}