Zoom 0% causes the application to freeze #119

Open
opened 2025-06-28 23:14:53 +02:00 by riki · 0 comments
Owner

This zoom level can be obtained by changing URL query parameters to e.g. &zoom=-200. Zoom should instead be clamped so that such freezes cannot happen.

The freeze occurs in CanvasRenderer.#collectChunksThisFrame, which iterates over all chunks in the viewport and collects them for rendering. Iterating over such an absurd amount of chunks is bound to cause problems no matter how you look at it.

This zoom level can be obtained by changing URL query parameters to e.g. `&zoom=-200`. Zoom should instead be clamped so that such freezes cannot happen. The freeze occurs in `CanvasRenderer.#collectChunksThisFrame`, which iterates over all chunks in the viewport and collects them for rendering. Iterating over such an absurd amount of chunks is bound to cause problems no matter how you look at it.
riki added the
bug
area/frontend
labels 2025-06-28 23:15:22 +02:00
riki added this to the Backlog project 2025-06-30 14:35:22 +02:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: riki/rkgk#119
No description provided.