I've been using the cocos2dx framework to build cross platform mobile games and the new windows 8.1 universal port is great. However, I'm having some memory issues with long running processes where too many textures get loaded on low memory devices.
Now, cocos2dx does provide a function to purged unused textures to lower the device's memory footprint (kind of like garbage collection). It's not hooked up to anything in the win 8.1 port of cocos2dx , but on other platforms like iOS and android, it is
called in OS-driven memory warning callbacks and things like that.
I'm wondering if windows 8.1 contains a similar low memory callback or at the very least a way to check available process memory at runtime so that i can call this purge cache method only when memory is below a certain threshold. I'm using xaml/c++
right now for these games so i'd be looking for a compatible api.