Reply To: After zooming the canvas, it keeps redrawing every frame, causing severe lags.

NodeCanvas Forums Support After zooming the canvas, it keeps redrawing every frame, causing severe lags. Reply To: After zooming the canvas, it keeps redrawing every frame, causing severe lags.

#16909
Gavalakis
Keymaster

Hello,

I can confirm your findings. Repaint is called far more than it should because the pan is never reaching target pan, even though Repaint in the update should only be called for a few frames (while smoothly zooming/panning only). The problematic line of code is #386. It is no longer needed (it used to be), so I removed it. Please remove that line as well so that Repaint stops being called in update more than it should.

Thank you for letting me know of your findings!

Join us on Discord: https://discord.gg/97q2Rjh