{"action":"created","issue":{"url":"https://api.github.com/repos/photonstorm/phaser/issues/2121","labels_url":"https://api.github.com/repos/photonstorm/phaser/issues/2121/labels{/name}","comments_url":"https://api.github.com/repos/photonstorm/phaser/issues/2121/comments","events_url":"https://api.github.com/repos/photonstorm/phaser/issues/2121/events","html_url":"https://github.com/photonstorm/phaser/issues/2121","id":109548662,"number":2121,"title":"Very Weird Phaser Bug","user":{"login":"McFarts","id":13074002,"avatar_url":"https://avatars.githubusercontent.com/u/13074002?v=3","gravatar_id":"","url":"https://api.github.com/users/McFarts","html_url":"https://github.com/McFarts","followers_url":"https://api.github.com/users/McFarts/followers","following_url":"https://api.github.com/users/McFarts/following{/other_user}","gists_url":"https://api.github.com/users/McFarts/gists{/gist_id}","starred_url":"https://api.github.com/users/McFarts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/McFarts/subscriptions","organizations_url":"https://api.github.com/users/McFarts/orgs","repos_url":"https://api.github.com/users/McFarts/repos","events_url":"https://api.github.com/users/McFarts/events{/privacy}","received_events_url":"https://api.github.com/users/McFarts/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-10-02T18:41:38Z","updated_at":"2015-10-02T20:00:55Z","closed_at":null,"body":"Not sure what is going on, but sometimes when you refresh everything is all smooth and works like butter. But then sometimes when u refresh everything is all glitchy, and laggy? It does this on the latest chrome and opera and Firefox. \r\n\r\nI've made a video to try to explain, although you cannot really tell because the screen recorder is shit and tears the screen too, but it's much noticeable on my side.\r\n\r\nhttps://www.youtube.com/watch?v=8_j1T6Zauec&feature=youtu.be\r\n\r\nAnd yes, it does this without recording the screen.\r\n\r\nHere is my code (if it helps):\r\n```\r\nvar game = new Phaser.Game(1280, 720, Phaser.AUTO, 'phaser-example', { preload: preload, create: create, update: update,   render: render });\r\n\r\nfunction preload() {\r\n\t//game.load.spritesheet('GameSprite', '../img/gsprite.png');\r\n\tgame.load.atlasJSONHash('GameSprite', '../img/gsprite.png', 'gsprite.json');\r\n\tgame.load.image('background','./images/debug-grid.png');\r\n\t\r\n\t\r\n\t\r\n}\r\n\r\nvar Player;\r\nvar tween;\r\nvar button;\r\nvar dashingLeft = false;\r\n\r\nfunction create() {\r\n    game.stage.backgroundColor = '#182d3b';\r\n\r\n    game.add.tileSprite(0, 0, 1920, 1920, 'background');\r\n\tgame.world.setBounds(0, 0, 1920, 1920);\r\n\t\r\n\t\r\n\t\r\n\tgame.physics.startSystem(Phaser.Physics.P2JS);\r\n\t\r\n\t\r\n\t\r\n    var style = { font: \"32px Arial\", fill: \"#ff0044\"};\r\n    var PlayerPositionX = 0;\r\n\tvar PlayerPositionY = 0;\r\n\t\r\n\t Player =  game.add.sprite(game.world.centerX, game.world.centerY, 'GameSprite', 'PlayerMale');\r\n \r\n \r\n \r\n\tgame.physics.p2.enable(Player);\r\n \r\n\t/*\r\n    button = game.add.button(game.world.centerX - 95, 400, 'button', actionOnClick, this, 'over', 'out', 'down');\r\n    button.onInputOver.add(over, this);\r\n    button.onInputOut.add(out, this);\r\n\t*/\r\n\tcursors = game.input.keyboard.createCursorKeys();\r\n\tgame.camera.follow(Player, Phaser.Camera.FOLLOW_PLATFORMER);\r\n\t\r\n\t\r\n \r\n    game.input.onDown.add(moveSprite, game.world);\r\n \r\n}\r\n\r\nfunction update(){\r\n\tPlayer.body.setZeroVelocity();\r\n\t/*\r\n\t if ( dashingLeft && (oldPos - Player.x < 100)  ) {  // 100 would be the length of your dash move\r\n    Player.body.velocity.x = -500;  // or something some other dashing speed\r\n  } else {\r\n    dashingLeft = false;\r\n  }\r\n  */\r\n  \r\n}\r\n\r\n \r\n \r\nfunction render() {\r\n\r\n    game.debug.cameraInfo(game.camera, 32, 32);\r\n    game.debug.spriteCoords(Player, 32, 500);\r\n\r\n}\r\n\r\nfunction moveSprite (pointer) {\r\n \r\n    if (tween && tween.isRunning)\r\n    {\r\n        tween.stop();\r\n    }\r\n \r\n    //sprite.rotation = game.physics.arcade.angleToPointer(sprite, pointer);\r\n\r\n    //  300 = 300 pixels per second = the speed the sprite will move at, regardless of the distance it has to travel\r\n    var duration = (game.physics.arcade.distanceToPointer(Player, pointer) / 200) * 1000;\r\n\r\n\t\t\r\n\t//Player.body.x =  pointer.worldX;\r\n\t//Player.body.y =  pointer.worldY;\r\n \r\n \t\r\n\t\ttween = game.add.tween(Player.body).to({ x: pointer.worldX, y: pointer.worldY }, duration, Phaser.Easing.Cubic.Out, true);\r\n \r\n\t\r\n}\r\n```\r\n\r\nEdit: I've removed the text as well and it still does it."},"comment":{"url":"https://api.github.com/repos/photonstorm/phaser/issues/comments/145141142","html_url":"https://github.com/photonstorm/phaser/issues/2121#issuecomment-145141142","issue_url":"https://api.github.com/repos/photonstorm/phaser/issues/2121","id":145141142,"user":{"login":"McFarts","id":13074002,"avatar_url":"https://avatars.githubusercontent.com/u/13074002?v=3","gravatar_id":"","url":"https://api.github.com/users/McFarts","html_url":"https://github.com/McFarts","followers_url":"https://api.github.com/users/McFarts/followers","following_url":"https://api.github.com/users/McFarts/following{/other_user}","gists_url":"https://api.github.com/users/McFarts/gists{/gist_id}","starred_url":"https://api.github.com/users/McFarts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/McFarts/subscriptions","organizations_url":"https://api.github.com/users/McFarts/orgs","repos_url":"https://api.github.com/users/McFarts/repos","events_url":"https://api.github.com/users/McFarts/events{/privacy}","received_events_url":"https://api.github.com/users/McFarts/received_events","type":"User","site_admin":false},"created_at":"2015-10-02T20:00:55Z","updated_at":"2015-10-02T20:00:55Z","body":"Okay.\r\n\r\nI didn't add my graphics  (copyright issues atm)\r\n\r\nBut, in any event you can still see the lag when moving on certain refreshes, it's very noticeable.\r\n\r\nhttp://codepen.io/anon/pen/dYvWaL"}}