[WIP][Experimental] Out-of-Order Renderer for PixiJS Scene Graphs
This packages provides an out-of-order batch renderer, which:
-
can improve batching efficiency by smartly re-ordering your display-object renders to minimize draw calls. This can be done because display-objects that do not intersect in world space do not need to be rendered in-order.
-
does not need to prematurely flush when a filtered or masked display-object is encountered, unlike Pixi's in-built batch renderer. Instead of doing a full-flush, this renderer will only flush the display objects that intersect with the filtered/masked one.
Basic Usage
The following example will setup a built-in preset of the out-of-order renderer:
// it is placed at (100, 350), far away.const spriteWithFilters = ;spriteWithFiltersfilters = ;spriteWithFiltersposition;appstage; appstage