Using 2017r2.1 i compiled a 64bit app with nothing in it, just the window, and ran it.
Starting memory 15megs. I then resized to 5K screen size. Memory jumps to 120megs. Resize back to starting size ~25 megs, resizing back up to full screen i see 220megs being used. Close the window (leaving the app running) it sits at 112 megs.
Same app on Surface pro 4, windows 10, app uses 7 megs.
Both have hiDPI support on.
Any idea on why empty window is using so much memory on macOS?
I am running OSX 10.12.6