{"action":"created","issue":{"url":"https://api.github.com/repos/create3000/cobweb/issues/21","repository_url":"https://api.github.com/repos/create3000/cobweb","labels_url":"https://api.github.com/repos/create3000/cobweb/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/create3000/cobweb/issues/21/comments","events_url":"https://api.github.com/repos/create3000/cobweb/issues/21/events","html_url":"https://github.com/create3000/cobweb/issues/21","id":183083999,"number":21,"title":"ideas for possible optimization","user":{"login":"andreasplesch","id":6171115,"avatar_url":"https://avatars.githubusercontent.com/u/6171115?v=3","gravatar_id":"","url":"https://api.github.com/users/andreasplesch","html_url":"https://github.com/andreasplesch","followers_url":"https://api.github.com/users/andreasplesch/followers","following_url":"https://api.github.com/users/andreasplesch/following{/other_user}","gists_url":"https://api.github.com/users/andreasplesch/gists{/gist_id}","starred_url":"https://api.github.com/users/andreasplesch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andreasplesch/subscriptions","organizations_url":"https://api.github.com/users/andreasplesch/orgs","repos_url":"https://api.github.com/users/andreasplesch/repos","events_url":"https://api.github.com/users/andreasplesch/events{/privacy}","received_events_url":"https://api.github.com/users/andreasplesch/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-10-14T15:45:46Z","updated_at":"2016-10-19T15:04:15Z","closed_at":null,"body":"An issue to collect random ideas for cobweb optimization.\r\n\r\n1) In a scene with textures Mozilla's console shows this:\r\nError: WebGL: texImage2D: Uploading ArrayBuffers with FLIP_Y or PREMULTIPLY_ALPHA is slow.\r\n\r\n2) It looks like ImageTexture.js puts the image first in a new canvas element, then extracts it back out of the canvas to provide it as texture data for webgl. webgl allows for directly using the canvas element as texture source which should be faster ? Same for `<video>`."},"comment":{"url":"https://api.github.com/repos/create3000/cobweb/issues/comments/254840769","html_url":"https://github.com/create3000/cobweb/issues/21#issuecomment-254840769","issue_url":"https://api.github.com/repos/create3000/cobweb/issues/21","id":254840769,"user":{"login":"andreasplesch","id":6171115,"avatar_url":"https://avatars.githubusercontent.com/u/6171115?v=3","gravatar_id":"","url":"https://api.github.com/users/andreasplesch","html_url":"https://github.com/andreasplesch","followers_url":"https://api.github.com/users/andreasplesch/followers","following_url":"https://api.github.com/users/andreasplesch/following{/other_user}","gists_url":"https://api.github.com/users/andreasplesch/gists{/gist_id}","starred_url":"https://api.github.com/users/andreasplesch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andreasplesch/subscriptions","organizations_url":"https://api.github.com/users/andreasplesch/orgs","repos_url":"https://api.github.com/users/andreasplesch/repos","events_url":"https://api.github.com/users/andreasplesch/events{/privacy}","received_events_url":"https://api.github.com/users/andreasplesch/received_events","type":"User","site_admin":false},"created_at":"2016-10-19T15:04:15Z","updated_at":"2016-10-19T15:04:15Z","body":"ok. Just some thoughts \r\n1) perhaps chrome is fast for this.\r\n2) I looked up gl.texImage2D\r\n\r\nhttps://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/texImage2D\r\n\r\nThe border argument needs to 0. It is probably there only for opengl compatibility.\r\n\r\nFor DOM integration it could be nice to have a CanvasTexture node which accepts a canvas dom element as a dynamic texture source (perhaps with some limitations).\r\n"}}
{"actor":{"display_login":"andreasplesch"}}