Minecraft-like Roblox block game rblx.games/135624152691584
roblox roblox-game rojo

Revert "core: remove redundant waits"

+7 -7
+1 -1
src/ReplicatedStorage/Shared/ChunkManager/ChunkBuilder.lua
··· 117 117 if existing then 118 118 task.defer(function() 119 119 task.synchronize() 120 - -- RunService.RenderStepped:Wait() 120 + RunService.RenderStepped:Wait() 121 121 if existing.Parent then 122 122 existing:Destroy() 123 123 end
+6 -6
src/ReplicatedStorage/Shared/PlacementManager.lua
··· 139 139 print("[DEBUG] Client missing block; resyncing nearby chunks") 140 140 ChunkManager:ResyncAroundChunk(cx, cy, cz, 1) 141 141 task.defer(function() 142 - -- task.synchronize() 143 - -- RunService.RenderStepped:Wait() 144 - -- task.desynchronize() 142 + task.synchronize() 143 + RunService.RenderStepped:Wait() 144 + task.desynchronize() 145 145 local refreshed = ChunkManager:GetChunk(cx, cy, cz) 146 146 if refreshed and refreshed:GetBlockAt(x, y, z) then 147 147 task.synchronize() ··· 254 254 if not pendingBreakResync[key] then 255 255 pendingBreakResync[key] = true 256 256 task.defer(function() 257 - -- task.synchronize() 258 - -- RunService.RenderStepped:Wait() 259 - -- task.desynchronize() 257 + task.synchronize() 258 + RunService.RenderStepped:Wait() 259 + task.desynchronize() 260 260 pendingBreakResync[key] = nil 261 261 ChunkManager:ResyncAroundChunk(cx, cy, cz, 1) 262 262 end)