foliage cell performance improvement
Some checks failed
studiorailgun/Renderer/pipeline/head There was a failure building this commit

This commit is contained in:
austin 2025-05-25 09:42:47 -04:00
parent 5eb17cca85
commit 2f58d38a1f
2 changed files with 5 additions and 0 deletions

View File

@ -1982,6 +1982,8 @@ Upgrade target framerate
(05/25/2025)
Flag to enable/disable opengl error checking calls
Performance improvements
- Foliage cell quits earlier

View File

@ -341,6 +341,9 @@ public class FoliageCellManager {
boolean fullyGenerated = true;
for(int i = 0; i < 8; i++){
WorldOctTreeNode<FoliageCell> child = children.get(i);
if(this.getMinDistance(absVoxelPos, child, distCache) > SIXTEENTH_RES_DIST){
continue;
}
boolean childUpdate = this.recursivelyUpdateCells(child, absVoxelPos, evaluationMap, minLeafLod, distCache);
if(childUpdate == true){
updated = true;