-
Notifications
You must be signed in to change notification settings - Fork 117
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
Flambe doesn't batch the textures created using the "subTexture" function. #314
Comments
Could this gain performance? |
Yes!
And now OUYA shows 60 FPS. |
Wow that looks quite significant. @aduros should this be put on this spot? |
Looks like a possible bug. I think it should be fixed in Stage3DGraphics/Batcher rather than up in ImageSprite. |
Does this code give you the same speedup? If you add this to Stage3DGraphics.hx (after the line that says root.assertNotDisposed() in drawSubTexture()):
|
Sorry to spam the topic, but maybe this would work better / instead? In Stage3DBatcher.hx replace prepareDrawTexture with this:
I'm assuming that we don't need call flush() if we are using the same texture root, which would skip the flush() calls for those subtextures. Or am I wrong? |
When I enabled the flambe_debug_renderer, I noticed Flambe draws all animated
sprites individually.
Looks like Flambe doesn't batch the textures created using the "subTexture" function (flambe.swf.BitmapSymbol uses it). It should batch them because subtextures have same parent texture.
The text was updated successfully, but these errors were encountered: