mirror of
https://github.com/dscyrescotti/Memola.git
synced 2026-01-14 05:03:24 +01:00
[Research] Optimize memory usage for a huge number of strokes #12
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.
@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 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.