Expand description
Computing the same thing each frame can be expensive, so often you want to save the result from the previous frame and reuse it.
Enter FrameCache
: it caches the results of a computation for one frame.
If it is still used next frame, it is not recomputed.
If it is not used next frame, it is evicted from the cache to save memory.
Structs
Caches the results of a computation for one frame.
If it is still used next frame, it is not recomputed.
If it is not used next frame, it is evicted from the cache to save memory.
Traits
Something that does an expensive computation that we want to cache
to save us from recomputing it each frame.