Module veloren_voxygen::scene::figure::cache
source · Structs§
- NOTE: To avoid spamming the character cache with player models, we try to store only the minimum information required to correctly update the model.
- Character data that exists in third person only.
- Character data that should be visible when tools are visible (i.e. in third person or when the character is in a tool-using state).
- TODO: merge item_key and extra field into an enum
- A type produced by mesh worker threads corresponding to the information needed to mesh figures.
- A type produced by mesh worker threads corresponding to the information needed to mesh figures.
Enums§
- A future FigureModelEntryLod.
- A future TerrainModelEntryLod.
Constants§
Traits§
Type Aliases§
- NOTE: To test this cell for validity, we currently first use Arc::get_mut(), and then only if that succeeds do we call AtomicCell::take. This way, we avoid all atomic updates for the fast path read in the “not yet updated” case (though it would be faster without weak pointers); since once it’s updated, we switch from
Pending
toDone
, this is only suboptimal for one frame.