{"action":"opened","issue":{"url":"https://api.github.com/repos/pixijs/pixi.js/issues/2189","labels_url":"https://api.github.com/repos/pixijs/pixi.js/issues/2189/labels{/name}","comments_url":"https://api.github.com/repos/pixijs/pixi.js/issues/2189/comments","events_url":"https://api.github.com/repos/pixijs/pixi.js/issues/2189/events","html_url":"https://github.com/pixijs/pixi.js/issues/2189","id":116027886,"number":2189,"title":"Optimize GraphicsRenderer.prototype.buildLine","user":{"login":"grovesNL","id":2113872,"avatar_url":"https://avatars.githubusercontent.com/u/2113872?v=3","gravatar_id":"","url":"https://api.github.com/users/grovesNL","html_url":"https://github.com/grovesNL","followers_url":"https://api.github.com/users/grovesNL/followers","following_url":"https://api.github.com/users/grovesNL/following{/other_user}","gists_url":"https://api.github.com/users/grovesNL/gists{/gist_id}","starred_url":"https://api.github.com/users/grovesNL/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grovesNL/subscriptions","organizations_url":"https://api.github.com/users/grovesNL/orgs","repos_url":"https://api.github.com/users/grovesNL/repos","events_url":"https://api.github.com/users/grovesNL/events{/privacy}","received_events_url":"https://api.github.com/users/grovesNL/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-10T05:06:11Z","updated_at":"2015-11-10T05:06:11Z","closed_at":null,"body":"As the comment in the code indicates, there is some optimization left to be performed on `GraphicsRenderer.prototype.buildLine` which creates line vertices. I thought I would raise this issue to start the discussion and possibly contribute if possible.\r\n\r\nDoes the `TODO OPTIMISATION` suggest JavaScript optimizations or the algorithm itself? Which algorithm is currently used for line drawing (i.e. especially with regards to the steep angle approximation issue referenced in #1950)? Have alternatives been considered?"}}