Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature request] Add an easy way to batch multiple object using a custom Painer #968

Open
b005t3r opened this issue May 29, 2017 · 1 comment
Labels

Comments

@b005t3r
Copy link

b005t3r commented May 29, 2017

In 1.x there was a flatten() method for easy batching of static objects together (on one or multiple batches). There's no such thing currently, but it looks like that if there was a custom Painter implementation all that needed to be done would be this:

obj.render(customPainer);
var batches:Vector<MeshBatch> = customPainter.getBatches();

Do you think you'd be able to add something like that?

@PrimaryFeather
Copy link
Contributor

PrimaryFeather commented May 29, 2017

When I removed flatten, this was my emergency plan to be able to add that again in the future, yes. But I haven't evaluated it in more detail yet, or decided if I should do that or rather look into other ways to speed up rendering.

In any case, it's good to have that idea as an issue here so that I don't forget about it, and so people can vote for this feature — thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants