[Research] Optimize memory usage for a huge number of strokes #12

Closed
opened 2025-12-29 05:19:00 +01:00 by adam · 2 comments
Owner

Originally created by @dscyrescotti on GitHub (May 4, 2024).

Originally assigned to: @dscyrescotti on GitHub.

Description

After drawing multiple strokes, the memory usage surges significantly. This is a serious issue when drawing a long stroke at the minimal zoom level so that the number of vertices generated are exponential and they are occupied in memory. This is a call to research on how to optimize memory usage.

Originally created by @dscyrescotti on GitHub (May 4, 2024). Originally assigned to: @dscyrescotti on GitHub. ### Description After drawing multiple strokes, the memory usage surges significantly. This is a serious issue when drawing a long stroke at the minimal zoom level so that the number of vertices generated are exponential and they are occupied in memory. This is a call to research on how to optimize memory usage.
adam added the help wanted label 2025-12-29 05:19:00 +01:00
adam closed this issue 2025-12-29 05:19:00 +01:00
Author
Owner

@dscyrescotti commented on GitHub (May 6, 2024):

So far, the memory consumption is reduced by changes the canvas size to 4,000 pixels. However, the memory will increase when adding more and more strokes on the canvas.

@dscyrescotti commented on GitHub (May 6, 2024): So far, the memory consumption is reduced by changes the canvas size to 4,000 pixels. However, the memory will increase when adding more and more strokes on the canvas.
Author
Owner

@dscyrescotti commented on GitHub (May 12, 2024):

So far, the memory is optimized by using core background context to interact with entities and loading vertices of strokes using kernel shader.

@dscyrescotti commented on GitHub (May 12, 2024): So far, the memory is optimized by using core background context to interact with entities and loading vertices of strokes using kernel shader.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Memola#12