Canvas is laggy with larger number of nodes

Using the following snippet increases performance immensely:

1 Like