Hello,
I’m loving Defold so far. I just stumbled across a weird bug that is making my game unplayable on iOS.
My game is a vertical scroller with the player starting ~100 y position with that increasing throughout the game. The camera follows the player, so the player and all the game objects have higher and higher y positions as the game goes on. On my Macbook with both Bundle and Bundle as HTML, the game works excellent. When I Bundle for iOS and install on my phone or target my iPhone directly, this is where it gets interesting. Around 10,000 y, the game starts stuttering on iOS. Around 50,000 y or so, sprites start to render a little warped (like bigger than expected), then around 200,000 y half of my sprites don’t render at all and the others are very warped.
I ran Instruments in XCode and CPU is like 15-20%, memory is consistent at 25MB, no leaks, and GPU shows 59-60 FPS the entire time.
To make sure it wasn’t my game logic, I changed my game starting y position to 200,000, and sure enough even at the start of the game sprites are missing / warped. It seems like it is only a factor of the y position. Starting the game at 200,000 on my Macbook, everything renders fine, so it appears to be only iOS (and I haven’t tested on Android yet but I will).
My general question is - is there some sort of limit to the y position of my world? I could refactor my game so that the player doesn’t move and instead platforms move in an out of the screen so that the y position never exceeds ~2000, but that would involve a lot of refactoring so I don’t want to do that yet.
Thanks,
Dan