I'm intending to try out using Löve for Android but I have a question about memory usage. I opened Löve with no game loaded and checked the task manager on my computer and it said about 30MB of memory was being used. That is beyond the regular limit for android devices, right? But does that value represent what happens when the game runs on android? If it's different, how can I check the amount of memory the game would use on a phone?
Right now I'm downloading the android tools for Löve. My connection is very slow, so while I wait, I decided to ask.
Android and Memory Usage
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
Re: Android and Memory Usage
Most of the memory is consumed by hooked up libraries, such as OpenGL. It of course depends on implementation, it could be a lot smaller on Android. You can always use build flags to disable some modules you wouldn't need, that will reduce the amount of machine code generated, amount of libraries hooked up, and amount of memory taken up by metadata. Either way it's not relevant, most of your game memory footprint will be graphics and sounds. It's super easy to create a game that takes absurd amounts of memory, you'll quickly find out you need to take very deliberate steps to reduce the amount of memory it requires. You can check the amount of memory an app takes in the "installed apps" settings menu, where "running" and "cached" tabs should be. To me, the nogame screen takes 30-something megabytes. My phone has 2 GB of memory though.
Re: Android and Memory Usage
This app is like a helper for a table RPG I play with some friends, so it only contains images (a lot of them though) and ~maybe~ some sounds will be added. Putting those images together as an atlas (that's the name right?) and later use as quads would help?
Anyway, I should test the 'game' on my phone as soon as the downloads finish, that's the only way to know for sure...
Anyway, I should test the 'game' on my phone as soon as the downloads finish, that's the only way to know for sure...
Last edited by PiFace on Fri Dec 23, 2016 7:11 pm, edited 1 time in total.
Re: Android and Memory Usage
Individual texture objects don't have significant memory overhead, and lack of those will be offset by memory overhead from quads. Using atlas is a measure to improve performance through reducing number of draw calls - one is issued each time you switch current texture, if you use atlas you never switch texture.
Who is online
Users browsing this forum: Bing [Bot], Google [Bot], pgimeno and 11 guests