client collidable memory leak fix
Some checks failed
studiorailgun/Renderer/pipeline/head There was a failure building this commit

This commit is contained in:
austin 2025-05-25 22:08:44 -04:00
parent 8bdebb16c2
commit accf7d32b8
3 changed files with 3 additions and 1 deletions

View File

@ -1997,6 +1997,7 @@ Performance improvements
- Increase memory limit 6GB->8GB
- Server block chunk disk map writes directly to output stream instead of inbetween buffer
- No-allocation block chunk read/write in disk map
- Fix client collidable memory leak
Increase human move speed
LOD components re-attach physics
VectorPool->JomlPool

View File

@ -101,6 +101,7 @@ public class PhysicsEntityUtils {
);
rVal.putData(EntityDataStrings.PHYSICS_COLLISION_BODY_TRANSFORM, offsetTransform);
rVal.putData(EntityDataStrings.PHYSICS_MODEL_TEMPLATE, physicsTemplate);
rVal.putData(EntityDataStrings.PHYSICS_COLLIDABLE, collidable);
Globals.clientState.clientScene.registerEntityToTag(rVal, EntityTags.COLLIDABLE);
engine.registerCollisionObject(geom, collidable);

View File

@ -55,7 +55,7 @@ public class ClientLODComponent implements BehaviorTree {
cachedLodLevel = lodLevel;
if(cachedLodLevel == ServerLODComponent.FULL_RES){
CommonEntityType type = CommonEntityUtils.getCommonData(this.parent);
if(type.getCollidable() != null){
if(type.getCollidable() != null && PhysicsEntityUtils.getCollidable(this.parent) == null){
PhysicsEntityUtils.clientAttachCollidableTemplate(parent, type.getCollidable());
}
} else if(cachedLodLevel == ServerLODComponent.LOW_RES){