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
Bug: [v8 regression] moving a crowded Container
drastically cuts performance
#10353
Comments
hey @joergplewe do you have a v7 example of this being slower? is this being compared to a v7 |
a bit more context
|
Hi! |
As always no simple answer. Ok, I tried to measure them both with 200000 children using the regular
|
cool! ok, that makes sense! we will make a particle container soon :) for v8 you also have the renderGroup option: https://www.pixiplayground.com/#/edit/i5fhM3waCCkMSaOnVD2va this will be super fast as long as things inside the container remain static! |
Ah thanks for the hint. I will investigate. |
It's 60fps when nothing is happening - because the renderer in v8 knows nothing is moving, so isn't actually doing anything at all. Just skipping the render loop. So the moment you move everything, it has to start rendering them all again, hence the fps drop. I'd say this is entirely expected (given the volume of sprites here) |
Ok, thx, I think I got it. Closing the issue then. |
Current Behavior
I use to have big containers (>100000 children) which need to be moved around (like panning a map or so).
As soon as the container is moved (
myContainer.position.set(x,y);
) the framerate drops significantly.I did not observe this effect in v7.
I also noticed that this effect happens with both WebGL and WebGPU, but with WebGL it is less rude, hence still significant compared to v7.
Expected Behavior
In my (naive) understanding, moving a
Container
should only touch a single matrix, so framerate must not be affected.As it was in v7.
Steps to Reproduce
Use https://www.pixiplayground.com/#/edit/-YSyps117HwGc2RU_AG0p
Either play with constant
CUT_PERFORMANCE
or set it tofalse
and drag the mouse pointer around. Observe drop in framerate.Environment
pixi.js
version: 8.0.2Possible Solution
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: