1
Window / memory leak from accessing iOS sensor data?
« on: February 28, 2016, 10:37:16 pm »
Running on an iOS device with one or more sensors enabled (via SensorManager::setEnabled()), seems there's about a .1MB/s leak in memory (with around 60 FPS). Anybody else see this?
Playing with the Objective-C code in SensorImpl.mm, if I wrap accesses of the motionManager properties within autorelease pool blocks, then memory doesn't appear to leak anymore. I noticed too that SFML is building with ARC disabled. That seems out-of-favor these days (in favor of using ARC). I couldn't get toggling of ARC use to avoid the leak however.
Playing with the Objective-C code in SensorImpl.mm, if I wrap accesses of the motionManager properties within autorelease pool blocks, then memory doesn't appear to leak anymore. I noticed too that SFML is building with ARC disabled. That seems out-of-favor these days (in favor of using ARC). I couldn't get toggling of ARC use to avoid the leak however.