Each tick tracks player position and stores it in a HistoricalObject, so the client can smoothly interpolate motion.
HistoricalObject
Agents remember what was said, summarize chats, and retrieve relevant memories next time they meet someone.
Expect ~1.5s latency.
You can lower latency by adjusting the tickDuration and stepDuration.
tickDuration
stepDuration
Use useQuery and useMutation in your UI.
useQuery
useMutation
Use useSendInput to send actions from the client.
useSendInput
Use useHistoricalValue and useHistoricalTime for smooth playback.
useHistoricalValue
useHistoricalTime
To change agent behavior, go to convex/agent/agent.ts.
convex/agent/agent.ts
To add a new feature, create an input and handle it in the engine.
To optimize latency, adjust step duration or isolate logic outside the engine.
Last updated 9 months ago