Hey there,
first excuse my bad English please, I'm not a native.
So, I've tested my very first test game on my Galaxy Note 4 and also on a Galaxy S5. My APK was build with Intel XDK and another APK was build with the steps in the MV Documentation.
The Map has a size by 40x40 and 5 events - 1x Door, 1x Cat (random walking), 1x smoking chimney, 1x empty event.
On both devices and with both APKs I have very heave lags and max. 3- 4 FPS, but when I go away from this events in an empty part of the map it works fine.
Did someone has a advice for me? :/
Post a screenshot of your events. Maybe there's something wrong that causes the game to lag.
How large was the apk after you built it? Do you know if it includes ALL resources or only those used in your game?
There is a thread in the MV Tutorials forum on building an apk that uses a method different to the one described in the documentation. Would you like to try that and see if it works better? There was no lag on the device in the video in that tutorial.
oops - too late. Yes, show us your events first. I'm particularly interested in the cat and the smoke events.
It's possible that your game is preloading a lot of resources (some stuff you're not seeing either) and it is overworking your phone's RAM. Did you try to remove all excess resources and make it work with bare minimum?
Can you also describe what the lag is like? Is it like, if I talk to the chest, there's a slight pause sort of lag? Or is it like 3~4 FPS even when you're walking? What's your phone's Android version? The minimum requirement is 4.4.
That's very interesting. Can you PM me the APK and Project?
Yes, of couse. I'll upload it on my ftp and send it to you 🙂
Any news out there Archeia?
I've wrote you a message but no answer 🙁
When making the apk for android, don't use the Intel method (the easy one)
Instead use the one that comes in the help file, when in RPG Maker MV, press F1
That will load a help file on your web browser.
From there go to the Documentation category
Pick Converting to an Android App and follow the steps EXACTLY as written, making mistakes will lead to a non-working game. It's not hard, but very involved, it's not a 5 minute lesson. lol
When you get to step 4-2, it will tell you what command to type in good ol'DOS (command prompt), it will say to type:
python C:\crosswalk-10.39.235.16\make_apk.py --package=com.example.sample --manifest=manifest.json
However, use this slight modification and it should make the game run better on your android (it does for mine at least)
python C:\crosswalk-10.39.235.16\make_apk.py --package=com.example.sample --manifest=manifest.json --xwalk-command-line="--ignore-gpu-blacklist"
The ignore gpu blacklist is the key there. Now if you want me to tell you why it works better. I don't know the specifics, but I think it has to do with magical fairy dust. 😉
There isn't at this time.
To be honest, Optimizing RM:MV will be difficult from both a community perspective and a developers one as well.
One of the things I am hoping to teach everyone is that HTML5 is still a very, very young mark up language. Sure, JS has been around for a while but we are not writing native mobile applications. This new "tech" wasn't even explored untill recently (2014). If your device lags like no tomorrow, its likely that your GPU has been blacklisted. If you get a decent range of FPS, it could also be the performance of your device in general.
My recommendations are
1. Lower your overall resolution (keep in mind what this does to effects, sprites and pictures)
2. Don't go crazy with events, particles, animations, effects and such. You have to manage your current resources with what goes literally on your screen and off.
3. Create your events as efficient as possible. (More Calculations your events require, the more resources it needs to pull from the pool)
Weather or not you use XDK, the manual method, or any other kind of HTML5 to APK tool, the difference will be minimal. It is until a new framework is out for HTML5/js till we see a major improvement. (example, cacoonjs, which at this time is not compatible)