chon27 Posted October 23, 2014 Share Posted October 23, 2014 One day, without appear reason my game was getting a strange lag. The FPS is stable, but the main sprite what you manage in the game get lag in his actions. I recorded a video: http://www.youtube.com/watch?v=GULryQYi0LY&feature=youtu.be Please, anybody knows why it can happen? In the game there is not more movable objects.Thanks. Link to comment Share on other sites More sharing options...
OttoRobba Posted October 24, 2014 Share Posted October 24, 2014 It could be a memory leak or something that is causing the garbage collector to go crazy - or it simply could be a small bug in the device/browser. Try using Phaser debug to troubleshoot it Link to comment Share on other sites More sharing options...
chon27 Posted October 26, 2014 Author Share Posted October 26, 2014 Thank you. I have activated Phaser debug and it run correctly. It run at 60-59fps all time, also during the lag. I am using the plugin Pixel Scaler and I have seen that in the original canvas has not lag but it has in the scaler canvas. Too, my brother has play my game in his computer and it has not lag anywhere. He has 4 GB RAM and I have 2GB. Could be that? It is weird. Link to comment Share on other sites More sharing options...
chon27 Posted October 28, 2014 Author Share Posted October 28, 2014 Thank you. I have activated Phaser debug and it run correctly. It run at 60-59fps all time, also during the lag. I am using the plugin Pixel Scaler and I have seen that in the original canvas has not lag but it has in the scaler canvas. Too, my brother has play my game in his computer and it has not lag anywhere. He has 4 GB RAM and I have 2GB. Could be that? It is weird. *I think I have solved the problem. I had Chrome and Opera Browsers, I have uninstall Opera and the problem has disappear. Probably an Opera bug or misconfiguration. Link to comment Share on other sites More sharing options...
hellspawn_bg Posted October 28, 2014 Share Posted October 28, 2014 I have this strange lag as well! My game is running steadily at 60 frames, but my character does those laggy hiccups. It just appeared randomly one day without any change made to the code. I first thought that it was from my machine, because on my friends laptop ran perfectly, until yesterday when it started behaving the same way on his machine. I still don't know how to approach the issue. Installed the phaser debug and everything seems normal. var game = new Phaser.Game(600, 400, Phaser.AUTO, 'gameContainer'); Here are my boot settings: this.stage.disableVisibilityChange = false; this.stage.forcePortrait = true; this.stage.backgroundColor = '#000000'; this.scale.minWidth = 600; this.scale.minHeight = 400; this.scale.pageAlignHorizontally = true; this.scale.pageAlignVerticaly = true; this.scale.setScreenSize(true); Link to comment Share on other sites More sharing options...
Recommended Posts