{"action":"created","issue":{"url":"https://api.github.com/repos/pixijs/pixi.js/issues/2913","repository_url":"https://api.github.com/repos/pixijs/pixi.js","labels_url":"https://api.github.com/repos/pixijs/pixi.js/issues/2913/labels{/name}","comments_url":"https://api.github.com/repos/pixijs/pixi.js/issues/2913/comments","events_url":"https://api.github.com/repos/pixijs/pixi.js/issues/2913/events","html_url":"https://github.com/pixijs/pixi.js/issues/2913","id":174980359,"number":2913,"title":"problem with Compatibility of brower ","user":{"login":"fengFanYong","id":20026967,"avatar_url":"https://avatars.githubusercontent.com/u/20026967?v=3","gravatar_id":"","url":"https://api.github.com/users/fengFanYong","html_url":"https://github.com/fengFanYong","followers_url":"https://api.github.com/users/fengFanYong/followers","following_url":"https://api.github.com/users/fengFanYong/following{/other_user}","gists_url":"https://api.github.com/users/fengFanYong/gists{/gist_id}","starred_url":"https://api.github.com/users/fengFanYong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fengFanYong/subscriptions","organizations_url":"https://api.github.com/users/fengFanYong/orgs","repos_url":"https://api.github.com/users/fengFanYong/repos","events_url":"https://api.github.com/users/fengFanYong/events{/privacy}","received_events_url":"https://api.github.com/users/fengFanYong/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-09-05T01:21:04Z","updated_at":"2016-09-05T02:05:52Z","closed_at":null,"body":"I found that the animate Refresh 1000 time;\r\ngoole : 34;\r\nother : 17;\r\nthe jsfiddle link : https://jsfiddle.net/muouliuma/97t0qub8/\r\ncode as below:\r\n\r\n<!DOCTYPE HTML>\r\n<html>\r\n\r\n  <head>\r\n    <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\r\n    <title>js test</title>\r\n    <style>\r\n      body {\r\n        margin: 0;\r\n        padding: 0;\r\n        background-color: #000000;\r\n      }\r\n\r\n    </style>\r\n\r\n  </head>\r\n\r\n  <body>\r\n    <script>\r\n      var stage = new PIXI.Container();\r\n      var render = PIXI.autoDetectRenderer(window.innerWidth, window.innerHeight);\r\n      document.body.appendChild(render.view);\r\n\r\n      for (var i = 1; i < 2; i++) {\r\n        bt = new PIXI.Sprite();\r\n\r\n        bt.on('mousedown', onDragStart);\r\n        bt.on('touchstart', onDragStart);\r\n\r\n        bt.on('mouseup', onDragEnd);\r\n        bt.on('mouseupoutside', onDragEnd);\r\n        bt.on('touchend', onDragEnd);\r\n        bt.on('touchendoutside', onDragEnd);\r\n\r\n        bt.on('mousemove', onDragMove);\r\n        bt.on('touchmove', onDragMove);\r\n        bt.interactive = true;\r\n        bt.buttonMode = true;\r\n        bt.anchor.set(0.5);\r\n        bt.x = i * 150;\r\n        bt.y = 200;\r\n        bt.width = 140;\r\n        bt.height = 344;\r\n\r\n        gt = new PIXI.Graphics();\r\n        gt.beginFill(0x123123);\r\n        gt.drawRect(0, 0, 1, 1);\r\n        gt.endFill();\r\n        bt.addChild(gt);\r\n        stage.addChild(bt);\r\n      }\r\n\r\n\r\n\r\n      var time = Date.now();\r\n      requestAnimationFrame(update);\r\n      var startTime = Date.now();\r\n      var count = 1000;\r\n      var sum = 0;\r\n\r\n      function update() {\r\n        count--;\r\n        if (count == 0) {\r\n          var endTime = Date.now();\r\n          console.log(\"____ render interval: %d ms\\n\", endTime - startTime);\r\n        }\r\n        requestAnimationFrame(update);\r\n        render.render(stage);\r\n      }\r\n\r\n      function onDragStart(event) {\r\n        this.data = event.data;\r\n        this.dragging = true;\r\n      }\r\n\r\n      function onDragEnd() {\r\n        this.dragging = false;\r\n        this.data = null;\r\n      }\r\n\r\n      function onDragMove() {\r\n        if (this.dragging) {\r\n          var newPosition = this.data.getLocalPosition(this.parent);\r\n          this.position.y = newPosition.y;\r\n        }\r\n      }\r\n\r\n    </script>\r\n  </body>\r\n\r\n</html>\r\n\r\n\r\nPIXI version v4.0;\r\nbrower : 52.0.2743.82;\r\nwin7: Enterprise 64bits ;\r\ncpu : inter G3260;\r\nThank!\r\n"},"comment":{"url":"https://api.github.com/repos/pixijs/pixi.js/issues/comments/244644366","html_url":"https://github.com/pixijs/pixi.js/issues/2913#issuecomment-244644366","issue_url":"https://api.github.com/repos/pixijs/pixi.js/issues/2913","id":244644366,"user":{"login":"fengFanYong","id":20026967,"avatar_url":"https://avatars.githubusercontent.com/u/20026967?v=3","gravatar_id":"","url":"https://api.github.com/users/fengFanYong","html_url":"https://github.com/fengFanYong","followers_url":"https://api.github.com/users/fengFanYong/followers","following_url":"https://api.github.com/users/fengFanYong/following{/other_user}","gists_url":"https://api.github.com/users/fengFanYong/gists{/gist_id}","starred_url":"https://api.github.com/users/fengFanYong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fengFanYong/subscriptions","organizations_url":"https://api.github.com/users/fengFanYong/orgs","repos_url":"https://api.github.com/users/fengFanYong/repos","events_url":"https://api.github.com/users/fengFanYong/events{/privacy}","received_events_url":"https://api.github.com/users/fengFanYong/received_events","type":"User","site_admin":false},"created_at":"2016-09-05T02:05:52Z","updated_at":"2016-09-05T02:05:52Z","body":"larger the window,the Performance is relatively low"}}
{"actor":{"display_login":"fengFanYong"}}