Skip to content

Commit 7272759

Browse files
committed
performance: editor's map and grid rendering
[Editor] - We were iterating over the same 9 maps (3x3 grid) 6 separate times for different layers/attributes. This fix consolidates the whole thing into a single pass. - Add DrawAllMapAttributes() to consolidate 3 attribute draw calls - Cached property lookups in DrawGridOverlay, DrawTransparentBorders, and DrawMapBorders to avoid repeated access - Cache textures and property lookups in hot paths - Move DrawMapGrid lines outside nested loop, reduction in draw calls - Reduce DrawMapBorders from 8 to 4 calls, pre-calculates values - Optimized DrawTransparentBorders with texture caching and IsDisposed check - Add view culling to skip off-screen rendering - Removes unused imports and variables. Signed-off-by: Arufonsu <17498701+Arufonsu@users.noreply.github.com>
1 parent 2e4900a commit 7272759

1 file changed

Lines changed: 129 additions & 305 deletions

File tree

0 commit comments

Comments
 (0)