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 tickDuration and stepDuration.


🚀 Quick Tips

  • Use useQuery and useMutation in your UI.

  • Use useSendInput to send actions from the client.

  • Use useHistoricalValue and useHistoricalTime for 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