⚡Advanced Topics
Smooth Motion
Each tick tracks player position and stores it in a HistoricalObject, so the client can smoothly interpolate motion.
Conversations
Agents remember what was said, summarize chats, and retrieve relevant memories next time they meet someone.
Input Latency
Expect ~1.5s latency.
You can lower latency by adjusting the
tickDurationandstepDuration.
🚀 Quick Tips
Use
useQueryanduseMutationin your UI.Use
useSendInputto send actions from the client.Use
useHistoricalValueanduseHistoricalTimefor smooth playback.
🛠️ Debugging / Hacking
To change agent behavior, go to
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