From 92fb8e2d002c5e5f457355645b87de156b88eec3 Mon Sep 17 00:00:00 2001 From: Timo <6156589+Shik3i@users.noreply.github.com> Date: Sat, 30 May 2026 00:06:52 +0200 Subject: [PATCH] Roll back network latency compensation to maximize simplicity and clock skew safety --- extension/content.js | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/extension/content.js b/extension/content.js index 1edfde7..e27cce0 100644 --- a/extension/content.js +++ b/extension/content.js @@ -383,18 +383,6 @@ } } else if (action === EVENTS.FORCE_SYNC_EXECUTE) { stopLobbyPoll(); - - // Network Latency Compensation: pre-seek video by network transit latency - const video = findVideo(); - if (video && message.actionTimestamp) { - const latency = (Date.now() - message.actionTimestamp) / 1000; - if (latency > 0.05 && latency < 1.0) { - _setSuppress('seek'); - video.currentTime += latency; - reportLog(`Force Sync: Compensated ${Math.round(latency * 1000)}ms network latency`, 'info'); - } - } - tryMediaAction(EVENTS.PLAY); chrome.runtime.sendMessage({ type: 'CMD_ACK', actionTimestamp: message.actionTimestamp, commandSenderId: message.commandSenderId }); actionCompleted = true;