foliage cell performance improvement
Some checks failed
studiorailgun/Renderer/pipeline/head There was a failure building this commit
Some checks failed
studiorailgun/Renderer/pipeline/head There was a failure building this commit
This commit is contained in:
parent
5eb17cca85
commit
2f58d38a1f
@ -1982,6 +1982,8 @@ Upgrade target framerate
|
||||
|
||||
(05/25/2025)
|
||||
Flag to enable/disable opengl error checking calls
|
||||
Performance improvements
|
||||
- Foliage cell quits earlier
|
||||
|
||||
|
||||
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user