pixi-scrollbox
pixi-scrollbox copied to clipboard
high cpu usage + glitching of scrolling
I have 1000 childs (single sprite) in scrollBox.content
Having 100 items is ok. But If I have 1000 items, the scrolling cause high cpu usage (almost 100%) + very laggy. How to solve this problem? I want to have long text lists.
1000 items should be okay based on the type of objects. Perf is very individual for a project. I would recommend staying away from pixi.text (use bitmaptext instead), and if needed, cull items when they are no longer in view to improve performance (ie, set visible = false when they're offscreen). Masks in pixi are a bit more expensive than not having masks, but it should be able to handle 1000 items.