mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-10-27 03:06:57 -06:00
The renderers share decoded images within a budget of an eighth of the installed memory, at most 1 GiB. The installed memory was read only on Linux, so on Windows, macOS and FreeBSD the budget was always 1 GiB, also on machines with less than 8 GiB. The installed memory is now read with GlobalMemoryStatusEx on Windows (through winsafe, which vectorcraft-cli already uses), sysctl hw.memsize on macOS and sysctl hw.physmem on FreeBSD. The budget rule is unchanged: an eighth of the installed memory, at most 1 GiB, 1 GiB where the memory can't be read, and 256 MiB in the web build.