Skip to content
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

high cpu usage + glitching of scrolling #43

Open
humbleCoder1990 opened this issue Aug 22, 2021 · 1 comment
Open

high cpu usage + glitching of scrolling #43

humbleCoder1990 opened this issue Aug 22, 2021 · 1 comment

Comments

@humbleCoder1990
Copy link

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.

@davidfig
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants