draw optimizations

This commit is contained in:
IliaDenisov
2026-03-08 23:30:11 +02:00
parent fdcbb5d6f4
commit ac35360d60
18 changed files with 875 additions and 566 deletions
+11
View File
@@ -50,6 +50,17 @@ type World struct {
renderState rendererIncrementalState
derivedCache map[derivedStyleKey]StyleID
// scratch buffers for hot render path (single goroutine assumption).
scratchDrawItems []drawItem
scratchWrapShifts []wrapShift
scratchLineSegs []lineSeg
scratchLineSegsTmp []lineSeg
// candidate dedupe scratch (hot path for plan building).
candStamp []uint32
candEpoch uint32
scratchCandidates []MapItem
}
// NewWorld constructs a new world with the given real dimensions.