I’m currently (or more precisely have been for the last ~2 months) encountering a super weird issue (probably the most annoying I’ve ever encountered). It took me some time to post this message because it was a bit demoralizing so I decided to work on other stuff.
Long story short: the exact same version of my game was working fine on mobile ~2.5-3 months ago and I realized ~1-1.5 months ago that the game was MUCH slower (more details below). No change, no update. Same device, same game, same version. Nothing changed since I’ve uploaded the html5 files via the ftp client. Well, something probably changed but nothing related to the game itself…
As said above, 2-3 months ago the game was really fluid on html5 mobile, with short “black screen” loadings (like 0.5-1 second, max). Creating a smooth user experience was and still is my highest priority (because for me it’s not “for real” if I can’t share a playable version), so until now I never considered a feature completed if the added stuff was making the game laggy.
But now, on the exact same device, with the exact same version:
As you can see, the “black screen” loadings between scenes takes sooooo long (10+ sec!!!) and the gameplay elements are not simultaneously loaded… Actually, the 1st black screen takes so long that I had to trim the video almost right after it… Horrible.
A few weeks ago I tested the same version on a friend’s phone (iPhone 13 Pro): same result! Huge disappointment because I would have preferred for my iPhone to be the cause of the problem.
But but but… right after that, we tested it on his tablet (iPad Pro) and SURPRISE: super fluid, just like it used to be on my iPhone.
(the gameplay seems less intuitive than I thought but at least it’s fluid - just like on my iPhone before it got laggy for “no reason”)
It’s ok on html5 desktop too.
Iphone X (iOS 16.3.1) > slow… (previously OK)
iPhone 13 Pro (iOS 16.3.1) > slow… (“probably” previously OK)
iPad Pro (iOS 16.3.1) > OK!
Desktop (html5) > OK!
Note 1 : same results on both Chrome and Safari (doesn’t seem browser-specific)
Note 2 : super old versions are laggy as well…! Something really happened but I don’t know what.
At this point, I’m a bit desperate because as mentioned above, maintaining good performances on mobile has been my main obsession from the very beginning, and what I’m currently facing just doesn’t make sense to me. It doesn’t feel like a regular performance issue, it’s like there is something “external” I can’t control…
But I can’t imagine being unable to fix this (very) unexpected and (very) annoying issue.
Are there any possible causes that come to your mind? Could the issue be caused by an iOS update or anything OS/device-specific? Did someone else encounter something similar? How should I investigate?
Here is the latest version of the project, the result is exactly the same: slow on iPhone X/13, fast on iPad and desktop:
Feel free to give it a quick try to see if it’s laggy on your device. You don’t have to play more than 30 seconds, because you’ll know soon enough if it’s laggy or not. If the 1st black screen takes more than 1 sec, then… there is a problem.
PS: please help