{"action":"opened","issue":{"url":"https://api.github.com/repos/regl-project/regl/issues/481","repository_url":"https://api.github.com/repos/regl-project/regl","labels_url":"https://api.github.com/repos/regl-project/regl/issues/481/labels{/name}","comments_url":"https://api.github.com/repos/regl-project/regl/issues/481/comments","events_url":"https://api.github.com/repos/regl-project/regl/issues/481/events","html_url":"https://github.com/regl-project/regl/issues/481","id":320477974,"number":481,"title":"Destroy draw command","user":{"login":"fuzhenn","id":13678919,"avatar_url":"https://avatars2.githubusercontent.com/u/13678919?v=4","gravatar_id":"","url":"https://api.github.com/users/fuzhenn","html_url":"https://github.com/fuzhenn","followers_url":"https://api.github.com/users/fuzhenn/followers","following_url":"https://api.github.com/users/fuzhenn/following{/other_user}","gists_url":"https://api.github.com/users/fuzhenn/gists{/gist_id}","starred_url":"https://api.github.com/users/fuzhenn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fuzhenn/subscriptions","organizations_url":"https://api.github.com/users/fuzhenn/orgs","repos_url":"https://api.github.com/users/fuzhenn/repos","events_url":"https://api.github.com/users/fuzhenn/events{/privacy}","received_events_url":"https://api.github.com/users/fuzhenn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-05T04:16:54Z","updated_at":"2018-05-05T04:16:54Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Related issue : #393 \r\n\r\nDraw comand destroy is a crucial feature in many cases (including my current project). When it needs to generate commands dynamically, zoombie commands will lead to memory leaks or even crash down in the end.\r\n\r\nSo to kick off implementation, here is a launching list IMHO:\r\n\r\n- [ ] new method: `regl({...}).destroy()` to delete generated gl program, shader, etc\r\n- [ ] remove deleted program and shaders from local caches\r\n- [ ] check if any cascade attribute or element buffer to destroy\r\n  *  if a buffer is created by `regl.buffer` intentionally, NOT destroy it and leave it to user.\r\n- [ ] test cases\r\n\r\nIs there anything I missed? Any comment or suggestion will be highly appreciated."}}
{"actor":{"display_login":"fuzhenn"}}