fix(net): interpolate between snapshots to absorb jitter (P1-6)

netfight eased to the newest snapshot with no buffer, so a jittery
client's robot stalled then jumped. Render ~120 ms in the past between
the two bracketing snapshots instead. Dev params ?netlag/?interp/
?netprobe reproduce it; unit test for the interp math + a Playwright
lag test (tests/e2e/netlag.spec.js).
This commit is contained in:
2026-11-19 19:46:54 +01:00
parent 2bf5a40ebc
commit a494290548
6 changed files with 183 additions and 36 deletions

View File

@@ -5,8 +5,8 @@ const { expect } = require('@playwright/test');
const mode = page => page.locator('body').getAttribute('data-mode');
// open the game in online mode and log in with name + password through the login card
async function login(page, name, pass) {
await page.goto('/?online');
async function login(page, name, pass, query = '') {
await page.goto('/?online' + query);
await page.locator('#oLogin').fill(name);
await page.locator('#oPass').fill(pass);
await page.locator('#oGo').click();