From 8345d55e76aa201c4c65cde598a1a83c3c2925d6 Mon Sep 17 00:00:00 2001 From: genxium Date: Sat, 18 Feb 2023 11:45:17 +0800 Subject: [PATCH] Updated collision constant setup. --- battle_srv/models/room.go | 4 ++-- frontend/assets/scenes/login.fire | 2 +- frontend/assets/scripts/OfflineMap.js | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/battle_srv/models/room.go b/battle_srv/models/room.go index 2c373d5..dd54cc8 100644 --- a/battle_srv/models/room.go +++ b/battle_srv/models/room.go @@ -778,7 +778,7 @@ func (pR *Room) OnDismissed() { // Always instantiates new HeapRAM blocks and let the old blocks die out due to not being retained by any root reference. pR.BulletBattleLocalIdCounter = 0 - pR.CollisionMinStep = 8 // the approx minimum distance a player can move per frame in world coordinate + pR.CollisionMinStep = 16 // the approx minimum distance a player can move per frame in world coordinate pR.Players = make(map[int32]*Player) pR.PlayersArr = make([]*Player, pR.Capacity) pR.SpeciesIdList = make([]int32, pR.Capacity) @@ -801,7 +801,7 @@ func (pR *Room) OnDismissed() { pR.PlayerSignalToCloseDict = make(map[int32]SignalToCloseConnCbType) pR.PlayerSecondarySignalToCloseDict = make(map[int32]SignalToCloseConnCbType) pR.JoinIndexBooleanArr = make([]bool, pR.Capacity) - pR.RenderCacheSize = 1024 + pR.RenderCacheSize = 256 pR.RenderFrameBuffer = resolv.NewRingBuffer(pR.RenderCacheSize) pR.InputsBuffer = resolv.NewRingBuffer((pR.RenderCacheSize >> 1) + 1) pR.rdfIdToActuallyUsedInput = make(map[int32]*pb.InputFrameDownsync) diff --git a/frontend/assets/scenes/login.fire b/frontend/assets/scenes/login.fire index a2dc041..d15fcf3 100644 --- a/frontend/assets/scenes/login.fire +++ b/frontend/assets/scenes/login.fire @@ -461,7 +461,7 @@ "array": [ 0, 0, - 210.75657517389567, + 210.4441731196186, 0, 0, 0, diff --git a/frontend/assets/scripts/OfflineMap.js b/frontend/assets/scripts/OfflineMap.js index be9c872..65e8e2e 100644 --- a/frontend/assets/scripts/OfflineMap.js +++ b/frontend/assets/scripts/OfflineMap.js @@ -16,8 +16,8 @@ cc.Class({ cc.view.enableAutoFullScreen(true); const self = this; window.mapIns = self; - self.showCriticalCoordinateLabels = true; - self.showNetworkDoctorInfo = true; + self.showCriticalCoordinateLabels = false; + self.showNetworkDoctorInfo = false; const mapNode = self.node; const canvasNode = mapNode.parent;