Hi all,
I'm having some issues with my project. I'm fairly sure that it's dt related, but i can't figure out where to put, or how to put it. The problem is probably that my game runs at 30 fps or lower on my mobile device, which makes the player movement look slowmotion while everything else is running normal speed. But the game runs 60 fps on my laptop. This is strange because they both have nearly the same specs. My Phone is huawei Y6 (2gb ram) (quad core), laptop is Medion akoya E2215T (2gb ram) (quad core). on both devices my cpu uses around 40%, 50 at it's highest.
But since i don't know the GPU specs of both, im guessing it might be related to that.
I've did alot of research about optimizing your game and did about all of them...Still can't figure it out.
I've changed sprite sizes to fit accordingly of what they should be on the layers.
I do not use any physics at all.
I do use alot of sprites, but they are not big and around 90% do not need heavy calculation or every tick events.
All sprites not on layout are properly destroyed, and only created when needed.
That's just a few i can recall, but i did more.
However, my event sheet is a long one, but i need everything that is in there. Already cleaned it as much as i could.
Alright i'll show how my movement works.
Movement
Aiming and shooting
Layout view of aim and movesticks, with move and aim rings aswell
So my guess is, there needs to be a dt somewhere. Because on the laptop the movement is perfect (60fps), but on Phone slowmotion (30fps). I should also note that on iPhone 6s it worked really smooth aswell, did not do a debug test, but im sure it was around 60fps. I preview on wifi to my Phone, and sometimes intel xdk. Both show same performance though.
Thanks for any help in advance.