I am curious about when showsFields
is turned on, the memory usage increase extremely fast? It can growth up to 500MB under 30 seconds. If my mac only have 8GB of R
It looks like the debug image drawn per frame is not being cleared up properly which, is probably leading to this memory leak.
Best will to file a bug report with Apple via https://developer.apple.com/bug-reporting/ so they know multiple people are having this issue and can hopefully give a higher priority.
Hope that helps.
Kind regards, Mukund