Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - phoenix4sfml

Pages: [1]
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.

2
Feature requests / Window-moved events
« on: January 14, 2016, 05:12:13 pm »
Haven't seen this asked for before... so here goes: how about the events code being expanded to include window movement events?

What do users think of this feature proposal?

I.e.:
  • Add an enum entry to Event.hpp like Moved.
  • Rename MouseMoveEvent to MoveEvent.
  • Use MoveEvent for MouseMoved and Moved event types.
  • Adding code to dispatch these new window moved events to the event retrieving methods of the Window class and any other appropriate places.

I realize I can get window position information and still react to window movement but having it be part of the normal events system/mechanism seems more elegant. Thank you.

Pages: [1]