{"action":"created","issue":{"url":"https://api.github.com/repos/pixijs/pixi.js/issues/4662","repository_url":"https://api.github.com/repos/pixijs/pixi.js","labels_url":"https://api.github.com/repos/pixijs/pixi.js/issues/4662/labels{/name}","comments_url":"https://api.github.com/repos/pixijs/pixi.js/issues/4662/comments","events_url":"https://api.github.com/repos/pixijs/pixi.js/issues/4662/events","html_url":"https://github.com/pixijs/pixi.js/issues/4662","id":294817196,"number":4662,"title":"Slow webgl performance","user":{"login":"vlajos","id":3994645,"avatar_url":"https://avatars1.githubusercontent.com/u/3994645?v=4","gravatar_id":"","url":"https://api.github.com/users/vlajos","html_url":"https://github.com/vlajos","followers_url":"https://api.github.com/users/vlajos/followers","following_url":"https://api.github.com/users/vlajos/following{/other_user}","gists_url":"https://api.github.com/users/vlajos/gists{/gist_id}","starred_url":"https://api.github.com/users/vlajos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vlajos/subscriptions","organizations_url":"https://api.github.com/users/vlajos/orgs","repos_url":"https://api.github.com/users/vlajos/repos","events_url":"https://api.github.com/users/vlajos/events{/privacy}","received_events_url":"https://api.github.com/users/vlajos/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":16,"created_at":"2018-02-06T16:10:33Z","updated_at":"2018-02-08T14:38:12Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\n\r\nI have written a proof of concept demo application: http://lavela.hu/sp/d.html\r\nwhich is quite fast. I migrated it into a Vue.js/Babel/Webpack/Es6 application and its webgl performance became very bad.\r\nIt seems that using the canvasrenderer it is still acceptable, so I assume that not the environment (itself) is causing the trouble.\r\n\r\nIn Chrome's profiler it seems that most of the time is spent here in the webgl renderer:\r\n![flame_float32array](https://user-images.githubusercontent.com/3994645/35869867-19d4d53a-0b58-11e8-9547-057c4a0c4400.jpg)\r\nA little more zoomed:\r\n![flame_float32array_zoom](https://user-images.githubusercontent.com/3994645/35869868-1a0c100e-0b58-11e8-878d-bbba65dcec3b.jpg)\r\n\r\nIn the original demo this part is quite quick (with webgl as well).\r\nIn the real application it is around 100x times slower.\r\n\r\nChrome profiler puts Float32ArrayConstructByIterable to the top in the wrong case.\r\n(76% of total time)\r\n\r\nCould you please help me what can cause this?\r\n\r\nThank you.\r\n\r\nBest regards,\r\nLajos"},"comment":{"url":"https://api.github.com/repos/pixijs/pixi.js/issues/comments/364130808","html_url":"https://github.com/pixijs/pixi.js/issues/4662#issuecomment-364130808","issue_url":"https://api.github.com/repos/pixijs/pixi.js/issues/4662","id":364130808,"user":{"login":"ivanpopelyshev","id":695831,"avatar_url":"https://avatars2.githubusercontent.com/u/695831?v=4","gravatar_id":"","url":"https://api.github.com/users/ivanpopelyshev","html_url":"https://github.com/ivanpopelyshev","followers_url":"https://api.github.com/users/ivanpopelyshev/followers","following_url":"https://api.github.com/users/ivanpopelyshev/following{/other_user}","gists_url":"https://api.github.com/users/ivanpopelyshev/gists{/gist_id}","starred_url":"https://api.github.com/users/ivanpopelyshev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ivanpopelyshev/subscriptions","organizations_url":"https://api.github.com/users/ivanpopelyshev/orgs","repos_url":"https://api.github.com/users/ivanpopelyshev/repos","events_url":"https://api.github.com/users/ivanpopelyshev/events{/privacy}","received_events_url":"https://api.github.com/users/ivanpopelyshev/received_events","type":"User","site_admin":false},"created_at":"2018-02-08T14:38:12Z","updated_at":"2018-02-08T14:38:12Z","author_association":"MEMBER","body":"btw, tilemap is effective even if you use only one instance, and clear/refill it every time something changes."}}
{"actor":{"display_login":"ivanpopelyshev"}}