Colyseus-Zeitsteuerung und Latenz
Koordiniert Serverticks, übertragene Zustände und Clientdarstellung. Begrenzt Vorhersage und korrigiert anhand bestätigter Eingaben, während Punkte und andere verbindliche Ergebnisse unter Serverkontrolle bleiben.
colyseus-simulation-latency
Entdecke, wie der Skill hilftWann ist der Skill hilfreich?
Nutze ihn bei Bewegungsdrift, ruckelnden Mitspielern oder wiederholten Eingaben nach verspäteter Bestätigung.
Wobei hilft er dir?
- Trennt Simulationstakte, Patch-Intervalle und Darstellung.
- Vergibt steigende Sequenzen für Eingaben und Serverbestätigungen.
- Begrenzt Vorhersagepuffer und korrigiert ohne doppelte Auswirkungen.
Das könntest du fragen
Simuliere in unserem Online-Rennspiel verspätete und ungleichmäßige Pakete beim Beschleunigen in einer Kurve. Verfolge Eingabenummern und gleiche Serverzustände ab. Das Auto darf visuell korrigiert werden, ein Kontrollpunkt aber beim Wiederholen von Eingaben nicht doppelt zählen.
Ausführliche Dokumentation
Hier findest du die ursprüngliche Anleitung, Beispiele und Prüfschritte des Skills in ihrer Originalsprache.
Weniger anzeigen
Colyseus — simulation latency
Use when implementing Colyseus simulation ticks, prediction, interpolation or input reconciliation.
Version and project gate
Inspect Server, client SDK and @colyseus/schema versions, TypeScript/decorator configuration, room registrations, auth hooks, patch/simulation rates, transport, deployment topology and persistence adapters. The 0.17 reconnection lifecycle must not be assumed for older versions. Never turn a task into an engine upgrade without the user’s intent. Read the version-matching official reference when an API decision depends on it.
Work
Separate simulation tick, patch interval and render cadence. Define monotonic input sequencing and server acknowledgement. Apply prediction only to actions whose correction rules are explicit; interpolate remote presentation independently. Bound buffered input and catch-up work.
Deliver
A timing/sequence contract and a client correction path that preserves server authority. Keep the change in the existing project structure; separate actual observations from the proposed acceptance scenario below.
Failure to prevent
Increasing patch frequency does not by itself fix simulation drift; replaying a command must not award its side effects twice.
Acceptance scenario
Exercise delayed, jittered, reordered and repeated input and compare the corrected state with the server’s accepted sequence. Follow the project’s execution and verification permissions. If execution or a target device is unavailable, provide the reproduction steps and name the remaining uncertainty; do not mark it passed.
Scope and sources
This skill belongs to Relay. Agent selection is restricted by Orqestria’s assigned-agent policy, including forced skill selection; instruction text alone is not an access control. These are original task workflows researched from official documentation, not a copied or endorsed vendor skill.
Enthaltene Dateien 1
SKILL.md
