about summary refs log tree commit diff stats
path: root/main.lua.
Commit message (Collapse)AuthorAgeFilesLines
* clean up memory leak experimentsKartik K. Agaram2022-06-101-517/+0
|
* remove some memory leaks from rendered fragmentsKartik K. Agaram2022-06-101-0/+517
All signs so far seem to be that CPU is cheap for this application, but memory is expensive. It's easy to get sluggish if the GC comes on. After some experiments using https://github.com/yaukeywang/LuaMemorySnapshotDump, one source of memory leaks is rendered fragments (https://love2d.org/wiki/Text objects). I need to render text in approximately word-sized fragments to mostly break lines more intelligently at word boundaries. I've attached the files I used for my experiments (suffixed with a '.') There's definitely still a leak in fragments. The longer I edit, the more memory goes to them.