mountainstorm Posted January 15, 2016 Share Posted January 15, 2016 I've just ported the key bit of a game I'm working on from HaxePunk to Phaser and am having a problem. As my main sprite moves it stutters, judders and in general does not move with the silky smooth motion I am expecting. You can have a look at it in action here: http://www.mountainstorm.co.uk/test/ZD/ I've tried both Chrome and Safari on OSX and both seem to have the same issue. I've also tried commenting out more the code (so it just moves the sprite at a programmed constant rate) and it's still not smooth. I've also tried playing around with calculating the motion based on elapsedMS, elapsed and physicsElapsed and none seem to make much difference. My CPU only runs at about 20%, so I'm kind of at a loss as to whats going wrong. Anyone have any thoughts? Link to comment Share on other sites More sharing options...
Tom Atom Posted January 15, 2016 Share Posted January 15, 2016 Did you try also with Phaser Debug plugin off? For me this solved problem in past. Link to comment Share on other sites More sharing options...
drhayes Posted January 15, 2016 Share Posted January 15, 2016 I can't help with your original problem, but I wanted to pop in to say that your game looks delightful. The zamboni looks perfect, the reflections look great... nice job! Link to comment Share on other sites More sharing options...
mountainstorm Posted January 15, 2016 Author Share Posted January 15, 2016 @drhayes Thanks for the feedback - when you get the gentle music playing its really quick pleasing and relaxing. @Tom Atom Yeah, I started off without the debug plugin and added it in the hope it might tell me something [it didn't]. Link to comment Share on other sites More sharing options...
rgk Posted January 16, 2016 Share Posted January 16, 2016 I also agree with drhayes, very nice looking game! But regarding the shuttering issue, it ran smooth for me. Link to comment Share on other sites More sharing options...
mountainstorm Posted January 16, 2016 Author Share Posted January 16, 2016 I've spent more time reading info of the evidently persistent problem of HTML5 stuttering and profiling techniques. Strange thing is, I'm not getting jank; at least on my main dev machine; and in fact nothing appears to be causing it ... I'm rather confused and disappointed in HTML5 [not Phaser, very impressed with that]. Link to comment Share on other sites More sharing options...
Recommended Posts