pixi-scrollbox icon indicating copy to clipboard operation
pixi-scrollbox copied to clipboard

high cpu usage + glitching of scrolling

Open humbleCoder1990 opened this issue 4 years ago • 1 comments

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.

humbleCoder1990 avatar Aug 22 '21 20:08 humbleCoder1990

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.

davidfig avatar Aug 22 '21 21:08 davidfig