Performance considerations #32
Closed
giovanni-bertoncelli
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
With this guide in mind, I'll pin up some considerations for this library that may improve performances:
ChangeDetectionStrategy.OnPush
for comparing @input by reference and not by object content?layer.draw()
only when config actually changesngx-konva/projects/ngx-konva/src/lib/components/ko-layer.component.ts
Line 29 in bb94638
layer.batchDraw()
? May be outdated with konva@9listening(false)
by default and enforce the use of listening directives to enable only explicitely shape (or layer) listening.ngx-konva/projects/ngx-konva/src/lib/components/ko-shape.component.ts
Line 51 in bb94638
Konva.pixelRatio = 1
(automatically on Retina displays?)Beta Was this translation helpful? Give feedback.
All reactions