Extracted and generalized from hand-tuned memory optimizations in an Electron app
template: memory/GPU/Raspberry-Pi-tiered command-line flags, a runtime GC + total-
process memory monitor with pressure-triggered deep clean, and per-window hide/
minimize memory helpers.