Files
WoWee/include/rendering/wmo_renderer.hpp
Kelsi 274516ad24 perf(wmo): cache ModelData pointer on draw list, skip duplicate hashmap find
WMORenderer::render did loadedModels.find(instance.modelId) three times
per visible instance per frame:
- once in the cullInstance lambda
- once in the main draw-list loop
- and the build pass earlier already gated visibility with .count()

Stash the const ModelData* on each InstanceDrawList during culling and
have the draw loop read straight through it. One hash lookup per
instance per frame instead of two.
2026-05-14 12:34:36 -07:00

31 KiB