diff options
Diffstat (limited to 'TODO.md')
-rw-r--r-- | TODO.md | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/TODO.md b/TODO.md index 0dfc22a..d002a6f 100644 --- a/TODO.md +++ b/TODO.md @@ -33,4 +33,26 @@ Clearing should be gradual between the line and background colour. It would be cute if the screen did a side-to-side animation on each - press as well. \ No newline at end of file + press as well. + +==== DONE? ==== + +Reduce memory usage with profiling + resources: + - A blog post from the rust-analyzer team on memory profiling (Dec. 2020) + https://rust-analyzer.github.io/blog/2020/12/04/measuring-memory-usage-in-rust.html + - Polar Signals blog post on using some jemalloc instrumentation (Oct. 2023) + https://www.polarsignals.com/blog/posts/2023/12/20/rust-memory-profiling + - Quickwit post on using heaptrack. This one first!! (Mar. 2022) + https://quickwit.io/blog/memory-inspector-gadget + + currently, on macOS, it seems we use 18MB while running. This seems reasonable + for a GUI application but it also seems high? All we really have is a window + with a place to put pixels. If my math isn't terribly wrong, which it might be, + we have + + DONE + because i wrote the smallest winit program, none-surface-left-beef, that's only + job was to make a winit window. It used 11MB. Our surfaces, assuming that + softbuffer holds only one buffer in memory, was ~5.2MB (~5MB for the 640x480 window + at a 2x scale, and ~1.2MB for 640x480 (both using u32s for pixels)). \ No newline at end of file |