No dumb comments
This commit is contained in:
parent
ec52e57dee
commit
779985c322
2 changed files with 2 additions and 32 deletions
|
|
@ -64,7 +64,6 @@ interface Result {
|
|||
maximumSpeed: number;
|
||||
}
|
||||
|
||||
// Exercise shared movement with independent server, network, and render clocks.
|
||||
// Measure world travel: the camera tracks the local character exactly, so measuring
|
||||
// their relative position would always report zero even when the world visibly stutters.
|
||||
const measure = ({
|
||||
|
|
@ -96,7 +95,6 @@ const measure = ({
|
|||
const predictor = new LocalCharacterPredictor();
|
||||
predictor.setStrength(settings.playerMaxStrength);
|
||||
|
||||
// Deterministic frame-time noise: a real display never delivers a perfectly even cadence.
|
||||
let seed = 12345;
|
||||
const random = () => (seed = (seed * 1103515245 + 12345) & 0x7fffffff) / 0x7fffffff;
|
||||
|
||||
|
|
|
|||
|
|
@ -61,7 +61,6 @@ function character(id = 1) {
|
|||
step: vi.fn(),
|
||||
render: vi.fn(),
|
||||
beforeDestroy: vi.fn(),
|
||||
// A health setter also represents damage sound/flash feedback in CharacterView.
|
||||
setHealth: vi.fn((health: number) => (object.health = health)),
|
||||
onShoot: vi.fn(),
|
||||
onDie: vi.fn(),
|
||||
|
|
@ -126,7 +125,6 @@ describe('suspended rendering', () => {
|
|||
expect(survivor.onShoot).not.toHaveBeenCalled();
|
||||
expect(retained(container).remoteCalls.length).toBeLessThanOrEqual(3);
|
||||
|
||||
// With no additional effects, subsequent snapshots retire the entire old tail.
|
||||
snapshot(container, 46);
|
||||
expect(container.planets).toHaveLength(0);
|
||||
expect(retained(container).objects.size).toBe(1);
|
||||
|
|
|
|||
Loading…
Reference in a new issue