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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user