Smart Caching: Why Repeated Content is Instant and Free

Every time Embertold generates an image, sound effect, or voice line, it gets smarter. Here's how our caching system works — and why it matters to you.
The Problem
AI generation is powerful but not instant. Generating a scene image takes a few seconds. Generating a sound effect takes a moment. And each generation costs credits. If every player had to wait for (and pay for) brand new content every time, the experience would be slow and expensive.
The Solution: Similarity Caching
Instead of exact matching (which would rarely hit), Embertold uses similarity-based caching. When the AI generates content, we don't just save the result — we save the meaning of what was requested.
When new content is needed, the system first checks: "Has something similar already been generated?"
- Scene images — If a player enters "a torch-lit stone dungeon with mossy walls" and we've already generated "a dark dungeon corridor lit by flickering torches," that's similar enough. The cached image is served instantly.
- Sound effects — A "heavy wooden door creaking open" matches a "creaking old door opening." Same sound, served from cache.
- Voice lines — If the exact same text with the same voice has been generated before, it's served from cache.
How Similar is "Similar Enough"?
We use a high similarity threshold — typically 90% or higher. This means the cached content must be very close to what was requested. A "dark dungeon" won't match a "sunny meadow." But a "torchlit dungeon corridor" will match a "flame-lit dungeon hallway."
What This Means for You
- Speed — Cached content loads instantly. No waiting for generation.
- Free — Cache hits don't cost credits. Ever.
- Gets better over time — As more players play, the cache grows. Content that's commonly encountered becomes permanently free for everyone.
The Virtuous Cycle
Every player's gameplay enriches the cache. The first player to enter a tavern generates the image. The second player gets it from cache, for free, in milliseconds. The more people play, the richer and faster the experience becomes for everyone.
This is why we built Embertold with caching at its core — not as an optimization afterthought, but as a fundamental part of the experience.
Play more. Generate more. The world gets richer for everyone.
Related Posts

Voices of the Realm: How Every NPC Gets a Unique Voice
Every NPC in Embertold speaks with their own AI-generated voice. Here's how we assign voices, add emotion, and bring characters to life.

Soundscapes of Adventure: Ambient Audio and Sound Effects
From tavern chatter to dungeon echoes, Embertold's audio system creates layered soundscapes that adapt to your adventure in real-time.

How Lore Feeds the Story: Keeping Every Detail Canon
Embertold's AI doesn't make things up — it draws from deep knowledge bases to keep every detail consistent with established universe lore.