Hi all.
I’ve recently just about finished my first Solar 2D project, which has taken me years to accomplish in my spare time.
Well, I thought I had.
I generally test in simulator, with my CPU usage rarely going above a few percent.
I build every few weeks and have given apk’s to friends, no negative feedback there. However my partner has been doing a lot of testing over the last couple weeks as I was looking to release the game on Google Play, and I noticed when she played there was some fairly significant slowdown.
So I spent the last week or so going over the whole thing, changing sprites to images where I could get away with it, localising loads of functions, etc, changing multiple enterFrame listeners to timers.
However the crux of all of this is it’s pretty much made no difference.
In actual fact if I was totally honest it feels worse now than when I started. So I’m kinda gutted really. I’ve literally spent thousands of hours to get to “finished” state and in my opinion it’s speed is currently unacceptable/unplayable.
This is testing on a Lenovo Tab 3 Plus which is 8 core 2Ghz with 3Gb RAM.
I read a lot of optimisation stuff when I started. I’ve coded with it in mind the whole way through. I’ve read and re-read it all again over the last week. I’ve added a framerate counter which seems to steadily decrease whilst playing, but I don’t think I have any significant memory issues. Also, I don’t really feel like there’s enough going on to warrant the poor speed, but then I can’t really call myself a hugely experienced Solar2D developer…although before this I was starting to feel like it…!
Any ideas please from seasoned Solar2D vets? Would appreciate it a lot.
As I wanted to sell the game I’m actually not past paying money for someone to review the project and fix this.
Thanks for reading.
All the best,
Nick