draw optimizations
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user