So I was very hyped up by the sdf text feature in bitmap-text. It solves so much problems in text-heavy projects. But... it breaks batching. I understand that there is a material change, but:
a) even sdf text objects on the same level in hierarchy don't get batched
b) in unity as long as geometry does not overlap objects with same materials still get batched even when they are in separate trees
I have a list that has like 20-40 list items on screen. Each item is composed of multiple text objects and sprites. As it is currently every single text object causes a flush and the end result is... not so great...
If I understand correctly the build-in pixi batcher does not work at all with objects with materials different then the default one and if I want anything else to batch I need a custom plugin. So my idea would be:
a) make plugin to batch all custom text sdf object's geometry ignoring their hierarchy
b) flush the batch on demand (for example in a custom container that would be the list parent)
Then I can manually do what unity does and first render all the list items sprites in one draw call and then all the text in a second one?
Is this possible? Will it work? If so could someone give me some hints where to start? For example is this https://github.com/pixijs/batch the correct place to start looking?