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

Move batch configuration to front of setup #5

Open
CaptainN opened this issue Apr 7, 2012 · 1 comment
Open

Move batch configuration to front of setup #5

CaptainN opened this issue Apr 7, 2012 · 1 comment

Comments

@CaptainN
Copy link
Member

CaptainN commented Apr 7, 2012

Right now, the only chance the user has to configure a batch is after they setup everything, and get an batch reference. Should be able to pass a config item with an added layer, when adding it.

@CaptainN
Copy link
Member Author

As part of this, I probably also need to create a factory for shader programs. This way, if the user knows they'll never use opacity or a tint on a set of Actors, they can use the config object to avoid the (costly on iPad 1) mul op in the fragment shader. If I pair that with a singleton of some kind, there are other optimizations that can happen in there, like a way to check for unnecessary state change operations between layers/batches.

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

No branches or pull requests

1 participant