mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-08-02 19:10:49 -04:00
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.
31 KiB
31 KiB