Kilenaitor / Jump

iOS Game in Swift
13 stars 2 forks source link

random lag #3

Open jonmars8 opened 9 years ago

jonmars8 commented 9 years ago

Hi,

I have made an app just like yours and I really don't understand why the ball lags sometimes. I have tried everything (replacing skshapenode by skspritenode, removing all ads, all buttons, all extra information, just left the ball and one sprite) and the ball randomly lags. the fps is 60 all the time, the nodes count is 3-4. I just don't understand, any idea? Please help me. On iphone 6 result is better but on iPhone 5 with iOS 8, the lag prevents from playing smoothly and I would like to understand to improve myself and keep on developing with spritekit. I hope you will help me, any help would be very appreciated! thank you very much in advance!!!

colormyapp commented 9 years ago

Hi,

I'm having the same problem. I was waiting for the skshapenode update to get the lag issue fixed, but nothing yet. If you find a solution, please let me know.

Thanks!

jonmars8 commented 9 years ago

Hi,

of course. But I have tried the workaround by replacing the skshapenode by the skspritenode the problem remains the same. I hope the author has fixed it or has any idea to fix it!!

jonmars8 commented 9 years ago

Hi

has the developer read our comments? The problem does not occur the first time. Please help us, thanks

colormyapp commented 9 years ago

Maybe he's trying to find a way to fix it..

Kilenaitor commented 9 years ago

Sorry for not responding sooner. This project is not exactly a priority of mine as I am a full time student so this is near the bottom of the priorities list.

I have not made the changes yet but if you guys are still seeing issues with the SKShapeNode, then I think I'll have to convert all of the SKShapes to SKSprite node. I'll submit an update when I figure things out.

jonmars8 commented 9 years ago

Hi,

thank you for your answer. I have removed all the skshapenode and I have converted the player node to a SKSprite node. I have removed all code, I have left only the small useful part and the FPS is OK at 60fps but there is still a lag on the iPhone 5 after the first game and I really don't understand why. I have tried everything, I am a little bit desperate to find out the solution

colormyapp commented 9 years ago

Maybe the bug doesn't come from SKSprite node.. Mhh..

jonmars8 commented 9 years ago

I don't think the problem comes from the SKSpriteNode

colormyapp commented 9 years ago

Any update?