Skip to content

Faster graph zoom by using a snapshot-preview#1728

Open
elidiot18 wants to merge 1 commit into
introlab:masterfrom
elidiot18:snapshotoverlay
Open

Faster graph zoom by using a snapshot-preview#1728
elidiot18 wants to merge 1 commit into
introlab:masterfrom
elidiot18:snapshotoverlay

Conversation

@elidiot18

@elidiot18 elidiot18 commented Jul 2, 2026

Copy link
Copy Markdown

Hi,
Browsing the graph of a large database can be tedious because each tiny bit of zoom requires to rerender all visible objects. In this commit I display a raster snapshot temporarily and render the real canvas only when the user has finished zooming (400ms need to pass without a new mouse wheel).
Note that I also changed the zooming anchor to mouse-centered because it feels more natural to me but this is a personal choice. I also updated the shift+click zooming.
It makes it easier to work with large dbs but introduces some pixelisation for normal size dbs, maybe it should only be activated if the db is detected as "large".
Note that the same should could also be done for rotating the graph.

Enregistrement.de.l.ecran.2026-07-02.204330.mp4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant