Measuring available system memory with Lua

,

I'd have to run my old code to check how it works today, but collect worked for me a couple of years ago.

https://devforum.play.date/t/tracking-memory-usage-throughout-your-game/1132

But as you say this is not representative of all system memory.