FPS drop on android

I've manage to build my game so it can be playable on android using this tutorial
problem is, the fps significantly drop when the actor performing critical his and complex animation. There's also slight delay of BGM when I transfer my player from 1 map to the other. Any suggestion how to fix that ? Currently I am using Samsung Galaxy A02s with 4 GB RAM
Theres a few problems that I can see. The issue really isn't RAM (though speed of RAM be a part of the factor) but your phones running a Mediatek MT6739W which is about in Snapdragon terms, a 4xx series. The phone I can best describe as a Lower end everyday driver phone, rather compared to an ROG, RAZR, or any of the flagships. What you're actually seeing is the result of using "maker" software. Your CPU is slow, so it reading each instruction slow as, so when something created two instructions at a quick interval, like a heavy animation or a BG starting while a map is loading, you're going to notice lag.

My suggestions are to optimize the living crap out of your project.

1. Use a lower resolution and accommodate your project. I personally used 480p even on my RAZR2. The larger sprites and text seemed more appropriate for mobile ( but i had my own CBS and Menu system, so the scale didnt effect those parts).

2. cut your animations in half. Meaning go to each animation and cut every other frame. Longer animations with alot going on will slow your CPU.

3. Be smart about eventing. One trick I liked to do if a map is too big, and my phone cant keep up is I'd fade the screen to black before I did a transfer. Did the transfer, then artificially made the "load screen" longer so the user can't see assets loading. Afterwards, I would fade the screen back to normal.

4. Optimize eventing. Because the maker has to load "generic code" in CHUNKS,

wait 0.5
wait 0.5
wait 0.5

should be combined to wait 1.5 stuff like that.

5. Test your device agaisnt other projects. I have an older project on the google play store called RPG Maker MV Bench mark. Thats a fresh project, no optimizations, and a older build. If your phone can't handle that then... thats kinda your awnser. I bet we wont have your problems on a snapdragon 845! lol



Code:
etwork     Technology     
GSM / HSPA / LTE
Launch     Announced     2021, January 27
Status     Available. Released 2021, January 27
Body     Dimensions     164 x 75.9 x 9.1 mm (6.46 x 2.99 x 0.36 in)
Weight     206 g (7.27 oz)
Build     Glass front, plastic back, plastic frame
SIM     Single SIM (Nano-SIM) or Dual SIM (Nano-SIM, dual stand-by)
Display     Type     PLS IPS
Size     6.5 inches, 102.0 cm2 (~81.9% screen-to-body ratio)
Resolution     720 x 1600 pixels, 20:9 ratio (~270 ppi density)
Platform     OS     Android 10, upgradable to Android 11, One UI 3.1
Chipset     Mediatek MT6739W (28 nm)
CPU     Quad-core 1.5 GHz Cortex-A53
GPU     PowerVR GE8100
Memory     Card slot     microSDXC (dedicated slot)
Internal     32GB 2GB RAM, 32GB 3GB RAM, 32GB 4GB RAM, 64GB 3GB RAM
     eMMC 5.1
Main Camera     Dual     13 MP, f/1.9, (wide), AF
2 MP, f/2.4, (macro)
Features     LED flash
Video     1080p@30fps
Selfie camera     Single     5 MP, f/2.0
Video     
Sound     Loudspeaker     Yes
3.5mm jack     Yes
Comms     WLAN     Wi-Fi 802.11 b/g/n, Wi-Fi Direct, hotspot
Bluetooth     5.1, A2DP, LE
GPS     Yes, with A-GPS, GLONASS
NFC     No
Radio     FM radio
USB     microUSB 2.0
Features     Sensors     Accelerometer
     Virtual proximity sensing
Battery     Type     Li-Po 5000 mAh, non-removable
Misc     Colors     Black, Blue
Models     SM-A022F, SM-A022F/DS, SM-A022M, SM-A022M/DS, SM-A022G, SM-A022G/DS
SAR EU     0.65 W/kg (head)     1.71 W/kg (body)   
Price     $ 89.00 / C$ 189.59 / £ 98.89 / € 180.00 / Rp 1,505,000
I've manage to build my game so it can be playable on android using this tutorial
problem is, the fps significantly drop when the actor performing critical his and complex animation. There's also slight delay of BGM when I transfer my player from 1 map to the other. Any suggestion how to fix that ? Currently I am using Samsung Galaxy A02s with 4 GB RAM
you need to pre-cache some of the image files (there's some plugins to do that already)... sometimes the 'lag' caused by the game trying to load the image to memory... but remember don't cache files to much... because if i remember correctly... i have seen post from another maker about google play disallow app to cache too much files... unless you're not distributing your apk to google play then it's fine to cache lots of things at the start of the game... hope this help 😀
You can remove the tint and glitter of the animation and see if that solves the problem
you need to pre-cache some of the image files (there's some plugins to do that already)... sometimes the 'lag' caused by the game trying to load the image to memory... but remember don't cache files to much... because if i remember correctly... i have seen post from another maker about google play disallow app to cache too much files... unless you're not distributing your apk to google play then it's fine to cache lots of things at the start of the game... hope this help 😀
Can you recommend the plugin ?
Can you recommend the plugin ?
if for RPG Maker MV
maybe try this one from Galv

maybe you also need this plugin too for the audio in case the audio loading is the one which drop the fps in your case...

hope this help.
if for RPG Maker MV
maybe try this one from Galv

maybe you also need this plugin too for the audio in case the audio loading is the one which drop the fps in your case...

hope this help.
Cool i am gonna check that out. One more thing, how about the lagging when critical hit ? Is there anyway I can change the critical animation ?
Cool i am gonna check that out. One more thing, how about the lagging when critical hit ? Is there anyway I can change the critical animation ?
Does it happen every time someone does a critical hit? Or just the first time?
Does it happen every time someone does a critical hit? Or just the first time?
everytime. And the fps drop is very drastic

Original thread: https://forums.rpgmakerweb.com/threads/fps-drop-on-android.144492/