Hello I made a 3D game and it ran fast on my desktop, but became cripplingly slow when i exported it on android. So I'm looking into some uncommon tips and ideas that might work.
Also I've read this link:
Like I said looking for more uncommon tricks. Though I also got some ideas i think might work but I don't know for sure, so please correct me if I'm wrong or tell me if I'm right.
My ideas are:
- Researching a sleep function to add at the end of a long loop.
(An example of a long loop would be AI Path finding)
- Freeing and re-instantiate object instead of hiding and showing them.
(I got this idea thinking that hidden object might actually be occupying ram space despite being hidden. In a scenario where games with so many hidden objects, this might actually make it faster, in theory, if the game just freed up the object and re-instantiate it when needed. Again I am asking if someone could affirm or disapprove my ideas since I don't know how the engine works in this regard)
- Saving and reading player stats from or on a file as oppose to storing it in variables at the start of the game.
(For some this is complicated to explain, so I'll try my best to explain this idea but bare with me as I do. There are arcade games that store the player's score on a variable throughout gameplay. My idea is to save the score on a file instead of storing it in a variable. Why, because variables are either allocated on a stack or Heap. but, both are stored in the computer's RAM. So storing data in temp files instead of variables, in theory, can reduce ram usage)
These are my ideas that I am not too sure will work. Again I am requesting uncommon tips either for back end or for graphics to increase fps. And feedback if my ideas may work because I do not want to rewrite my entire game to check for myself, because that may end up being a pointless endeavor if i am wrong so please send a feed back on this.