{"action":"created","issue":{"url":"https://api.github.com/repos/bkaradzic/bgfx/issues/372","labels_url":"https://api.github.com/repos/bkaradzic/bgfx/issues/372/labels{/name}","comments_url":"https://api.github.com/repos/bkaradzic/bgfx/issues/372/comments","events_url":"https://api.github.com/repos/bkaradzic/bgfx/issues/372/events","html_url":"https://github.com/bkaradzic/bgfx/issues/372","id":73143949,"number":372,"title":"Off thread texture/buffer upload","user":{"login":"jdarpinian","id":454184,"avatar_url":"https://avatars.githubusercontent.com/u/454184?v=3","gravatar_id":"","url":"https://api.github.com/users/jdarpinian","html_url":"https://github.com/jdarpinian","followers_url":"https://api.github.com/users/jdarpinian/followers","following_url":"https://api.github.com/users/jdarpinian/following{/other_user}","gists_url":"https://api.github.com/users/jdarpinian/gists{/gist_id}","starred_url":"https://api.github.com/users/jdarpinian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdarpinian/subscriptions","organizations_url":"https://api.github.com/users/jdarpinian/orgs","repos_url":"https://api.github.com/users/jdarpinian/repos","events_url":"https://api.github.com/users/jdarpinian/events{/privacy}","received_events_url":"https://api.github.com/users/jdarpinian/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-05-04T22:20:41Z","updated_at":"2015-05-06T04:05:37Z","closed_at":null,"body":"It would be great to have a way to upload textures and buffers from a background thread to avoid blocking either the UI or render threads."},"comment":{"url":"https://api.github.com/repos/bkaradzic/bgfx/issues/comments/99315283","html_url":"https://github.com/bkaradzic/bgfx/issues/372#issuecomment-99315283","issue_url":"https://api.github.com/repos/bkaradzic/bgfx/issues/372","id":99315283,"user":{"login":"bkaradzic","id":814772,"avatar_url":"https://avatars.githubusercontent.com/u/814772?v=3","gravatar_id":"","url":"https://api.github.com/users/bkaradzic","html_url":"https://github.com/bkaradzic","followers_url":"https://api.github.com/users/bkaradzic/followers","following_url":"https://api.github.com/users/bkaradzic/following{/other_user}","gists_url":"https://api.github.com/users/bkaradzic/gists{/gist_id}","starred_url":"https://api.github.com/users/bkaradzic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bkaradzic/subscriptions","organizations_url":"https://api.github.com/users/bkaradzic/orgs","repos_url":"https://api.github.com/users/bkaradzic/repos","events_url":"https://api.github.com/users/bkaradzic/events{/privacy}","received_events_url":"https://api.github.com/users/bkaradzic/received_events","type":"User","site_admin":false},"created_at":"2015-05-06T04:05:37Z","updated_at":"2015-05-06T04:05:37Z","body":"It's basic stuff, you have your texture loading code, that have queue of N textures you need to load, your code loads first X pass them to bgfx, and then waits for next frame to load more. Ideally textures you're loading are not needed the same frame. bgfx could do that for you but you have better idea in your code what's the best throttling strategy for app/game you're making. For example you might choose to load lower level mips, and display that first, while you're loading high level mip texture in background, and then once you have whole mip chain you decide to swap with new texture..."}}