rodydavis / infinite_canvas

Flutter infinite canvas that can be zoomed and panned.
https://rodydavis.github.io/infinite_canvas/
Apache License 2.0
51 stars 28 forks source link

Lagging as **** #7

Open ServOKio opened 1 week ago

ServOKio commented 1 week ago

On the desktop, I have huge problems with the fact that the workspace:

  1. It lags a lot when moving
  2. When zooming in
  3. When dragging and so on
rodydavis commented 1 week ago

Can you create a reproducible example?

Just tested last night for something and the. Demo is still smooth for me.

rodydavis commented 1 week ago

Also how many nodes/edges?

And please share a video if possible

ServOKio commented 1 week ago

You can open your own example

It all depends on the size of the workspace. Yes, it works well on small screens, starts lagging on 2560x1440 monitors and slows down even more on 4k monitors

https://github.com/user-attachments/assets/dd931600-f3eb-4501-8d5c-675f87a25a5d

rodydavis commented 1 week ago

Thanks for sharing this!

I will see why DPI is playing such a part. I think it might be the grid background.

I'll do some tests to be sure