From e2d0c0cd88f99189c8e40a3f276da0d1271bf795 Mon Sep 17 00:00:00 2001 From: austin Date: Thu, 5 Jun 2025 17:46:12 -0400 Subject: [PATCH] sim range update --- assets/Config/settings.json | 2 +- docs/src/progress/renderertodo.md | 1 + src/main/java/electrosphere/net/server/player/Player.java | 2 +- .../renderer/pipelines/debug/DebugContentPipeline.java | 4 +++- 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/assets/Config/settings.json b/assets/Config/settings.json index f3b21158..b78e666f 100644 --- a/assets/Config/settings.json +++ b/assets/Config/settings.json @@ -1,6 +1,6 @@ { "gameplayGenerateWorld" : false, - "gameplayPhysicsCellRadius" : 7, + "gameplayPhysicsCellRadius" : 10, "displayWidth" : 1920, "displayHeight" : 1080, diff --git a/docs/src/progress/renderertodo.md b/docs/src/progress/renderertodo.md index 205196f9..8e89cf3f 100644 --- a/docs/src/progress/renderertodo.md +++ b/docs/src/progress/renderertodo.md @@ -2125,6 +2125,7 @@ Fix progressive pathfinding iteration Non-body ground movement animation work Synchronization change for memory pressure Lerp non-body height differential based on distance (holds closer to ground) +Sim range update diff --git a/src/main/java/electrosphere/net/server/player/Player.java b/src/main/java/electrosphere/net/server/player/Player.java index fa306a04..04b76a5e 100644 --- a/src/main/java/electrosphere/net/server/player/Player.java +++ b/src/main/java/electrosphere/net/server/player/Player.java @@ -18,7 +18,7 @@ public class Player { /** * The default server-side simulation radius in chunks */ - public static final int DEFAULT_SIMULATION_RADIUS = 3; + public static final int DEFAULT_SIMULATION_RADIUS = 7; /** * DBID the client assigns to the player object diff --git a/src/main/java/electrosphere/renderer/pipelines/debug/DebugContentPipeline.java b/src/main/java/electrosphere/renderer/pipelines/debug/DebugContentPipeline.java index dbd488f4..27f53c3d 100644 --- a/src/main/java/electrosphere/renderer/pipelines/debug/DebugContentPipeline.java +++ b/src/main/java/electrosphere/renderer/pipelines/debug/DebugContentPipeline.java @@ -1,6 +1,7 @@ package electrosphere.renderer.pipelines.debug; import java.util.Collection; +import java.util.Collections; import java.util.LinkedList; import java.util.List; @@ -325,7 +326,8 @@ public class DebugContentPipeline implements RenderPipeline { } if(Globals.gameConfigCurrent.getSettings().getGraphicsDebugDrawServerCellColliders()){ Vector3d floatingOrigin = Globals.serverState.realmManager.first().getCollisionEngine().getFloatingOrigin(); - for(Entity ent : EntityLookupUtils.getAllEntities()){ + Collection entities = Collections.unmodifiableCollection(EntityLookupUtils.getAllEntities()); + for(Entity ent : entities){ if(PhysicsEntityUtils.getDGeom(ent) != null && ent.containsKey(EntityDataStrings.TERRAIN_IS_TERRAIN)){ DGeom geom = PhysicsEntityUtils.getDGeom(ent); DAABBC aabb = geom.getAABB();