1

According to this article, I embed my render loop within an autorelease pool block. But I found there is still a memory issue with XCode instruments as shown below. drawable memory leak

Why are there still memory leaks when embedded within the autorelease pool block? And how to fix it?

EDIT Not memory leak in iOS, but mac has.

coulsonwang
  • 161
  • 1
  • 11
  • Possibly a duplicate of https://stackoverflow.com/questions/56854929/memory-usage-keeps-rising-on-older-devices-using-metal#answer-56872577 – Ken Thomases Aug 02 '19 at 05:08
  • @KenThomases I have disabled both GPU Frame Capture and Metal API Validation, there is still a memory leak on mac when profiling the project in Instruments. – coulsonwang Aug 02 '19 at 07:32

0 Answers0