Re:Show HN: Desktop app displaying files on a 2D canvas
by j0d1 on Friday October 18, 2024 @10:21AM
(#41879741)
That's really cool! I am working on a diagramming editor and I wondered if I could expand the use cases to include knowledge organization. The challenge is mainly to display a lot of data on a canvas and don't kill the CPU/GPU in the process. How do you handle displaying that much information at once?
[ Parent
| on HN ]
Re:Show HN: Desktop app displaying files on a 2D canvas
by limandoc on Friday October 18, 2024 @01:05PM
(#41881345)
It is indeed hard to optimize it; I haven't fully utilized the potential myself. For now I have an object pool which allows me to create only one instance of a canvas element. Kotlin also allows me to use coroutines easily, also (potentially) have access to GPU/CPU since this is a desktop app.
Another thing I tried (still in backlog) is dynamic quality reducer for images and PDFs - sort of like a game engine rendering where zooming out will reduce quality of images. What are you writing your app on? Electron?