{"action":"created","issue":{"url":"https://api.github.com/repos/gfx-rs/gfx-rs/issues/751","labels_url":"https://api.github.com/repos/gfx-rs/gfx-rs/issues/751/labels{/name}","comments_url":"https://api.github.com/repos/gfx-rs/gfx-rs/issues/751/comments","events_url":"https://api.github.com/repos/gfx-rs/gfx-rs/issues/751/events","html_url":"https://github.com/gfx-rs/gfx-rs/issues/751","id":79469261,"number":751,"title":"Burn the batch context with fire","user":{"login":"kvark","id":107301,"avatar_url":"https://avatars.githubusercontent.com/u/107301?v=3","gravatar_id":"","url":"https://api.github.com/users/kvark","html_url":"https://github.com/kvark","followers_url":"https://api.github.com/users/kvark/followers","following_url":"https://api.github.com/users/kvark/following{/other_user}","gists_url":"https://api.github.com/users/kvark/gists{/gist_id}","starred_url":"https://api.github.com/users/kvark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kvark/subscriptions","organizations_url":"https://api.github.com/users/kvark/orgs","repos_url":"https://api.github.com/users/kvark/repos","events_url":"https://api.github.com/users/kvark/events{/privacy}","received_events_url":"https://api.github.com/users/kvark/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/gfx-rs/gfx-rs/labels/difficulty:%20average","name":"difficulty: average","color":"fbca04"},{"url":"https://api.github.com/repos/gfx-rs/gfx-rs/labels/module:%20render","name":"module: render","color":"009800"},{"url":"https://api.github.com/repos/gfx-rs/gfx-rs/labels/status:%20ready","name":"status: ready","color":"eb6420"},{"url":"https://api.github.com/repos/gfx-rs/gfx-rs/labels/type:%20refactor","name":"type: refactor","color":"006b75"},{"url":"https://api.github.com/repos/gfx-rs/gfx-rs/labels/value:%20medium","name":"value: medium","color":"5319e7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-05-22T14:10:44Z","updated_at":"2015-05-25T02:14:10Z","closed_at":null,"body":"It can be used to save on mesh/program cloning (which have allocations!) when creating lots of batches. However, I'm convinced it brings more trouble than the benefit (#510, #464, #351). Besides, it can just be moved outside of gfx-rs crate.\r\n\r\nThe problem with the `Context`, outside of it just being another thing to consider or think about, is that it doesn't have a very safe interface. Thus, it could be fine to use inside another library as an implementation detail, but not fine to expose it to the user. I may end up moving it out and using it for gfx_scene, but I'll hesitate to do it until mesh/program cloning shows up in the profiler.\r\n\r\nLet's burn this thing! We only really need a `Batch` trait and two kinds of batches: one with everything in it (`batch::Full`?), and another one with just the core components that have to be bound together (`batch::Core`). This is a breaking change supposedly for gfx-0.6\r\n\r\nObjections? @csherratt @cmr @bjz "},"comment":{"url":"https://api.github.com/repos/gfx-rs/gfx-rs/issues/comments/105093023","html_url":"https://github.com/gfx-rs/gfx-rs/issues/751#issuecomment-105093023","issue_url":"https://api.github.com/repos/gfx-rs/gfx-rs/issues/751","id":105093023,"user":{"login":"csherratt","id":62622,"avatar_url":"https://avatars.githubusercontent.com/u/62622?v=3","gravatar_id":"","url":"https://api.github.com/users/csherratt","html_url":"https://github.com/csherratt","followers_url":"https://api.github.com/users/csherratt/followers","following_url":"https://api.github.com/users/csherratt/following{/other_user}","gists_url":"https://api.github.com/users/csherratt/gists{/gist_id}","starred_url":"https://api.github.com/users/csherratt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/csherratt/subscriptions","organizations_url":"https://api.github.com/users/csherratt/orgs","repos_url":"https://api.github.com/users/csherratt/repos","events_url":"https://api.github.com/users/csherratt/events{/privacy}","received_events_url":"https://api.github.com/users/csherratt/received_events","type":"User","site_admin":false},"created_at":"2015-05-25T02:14:10Z","updated_at":"2015-05-25T02:14:10Z","body":"This sounds good to me."}}