Colyseus-időzítés és késleltetés
Összehangolja a szerverciklust, elküldött állapotokat és kliensoldali kirajzolást. Korlátozza az előrejelzést, visszaigazolt bemenetekkel javítja az eltérést, a pontozást pedig szerveroldali döntésben tartja.
colyseus-simulation-latency
Nézd meg, miben segítMikor hasznos?
Akkor használd, ha a mozgás elcsúszik, távoli játékosok akadoznak vagy késői nyugták miatt parancsok ismétlődnek.
Miben segít neked?
- Elkülöníti a szimulációt, állapotküldést és megjelenítést.
- Növekvő sorszámmal kezeli a bemenetet és szervernyugtát.
- Korlátozza az előrejelzési puffert, ismételt mellékhatás nélkül korrigál.
Például ezt kérheted
Az online autóversenyben késleltess és egyenetlenül kézbesíts csomagokat kanyarodó gyorsítás közben. Kövesd a bemenetsorszámokat, és egyeztesd a szerverállapotot. Az autó látványa korrigálható, de a visszajátszott bemenet miatt az ellenőrzőpont ne számítson kétszer.
Részletes dokumentáció
Itt a skill eredeti útmutatóját, példáit és ellenőrzési szempontjait olvashatod az eredeti nyelven.
Összecsukás
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.
Csomagban lévő fájlok 1
SKILL.md
