diff --git a/src/hooks/usePlaybackWebSocket.ts b/src/hooks/usePlaybackWebSocket.ts index 6e43200..a22755f 100644 --- a/src/hooks/usePlaybackWebSocket.ts +++ b/src/hooks/usePlaybackWebSocket.ts @@ -78,7 +78,6 @@ export function usePlaybackWebSocket(editorService: ShallowRef { latestRobotData.set(robot.id, robot); }); @@ -140,12 +139,10 @@ export function usePlaybackWebSocket(editorService: ShallowRef) => { const editor = editorService.value; - console.log('[Playback] Batch update: Editor service is', editor ? 'available' : 'NOT available', '. Updates to process:', updates); if (!editor || updates.length === 0) return; updates.forEach(({ id, data }) => { const robotExists = editor.checkRobotById(id); - console.log(`[Playback] Checking robot ID: ${id}. Exists in editor: ${robotExists}`); if (robotExists) { const { x, y, angle, ...rest } = data; editor.updateRobot(id, rest); @@ -162,7 +159,6 @@ export function usePlaybackWebSocket(editorService: ShallowRef { try { - console.log('[Playback] Render loop executing...'); const updates: Array<{ id: string; data: RobotRealtimeInfo }> = []; for (const [id, data] of latestRobotData.entries()) { updates.push({ id, data }); @@ -170,7 +166,6 @@ export function usePlaybackWebSocket(editorService: ShallowRef 0) { - console.log(`[Playback] Render loop: Preparing to update ${updates.length} robots.`); batchUpdateRobots(updates); }