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

[BUG] Moving a bunch of nodes to a bunch of other nodes causes incredible amount of slowness in animations. #473

Open
trusktr opened this issue Aug 19, 2015 · 5 comments

Comments

@trusktr
Copy link
Contributor

trusktr commented Aug 19, 2015

I'm animating like 100 nodes, and it's all fine.

If I take those 100 nodes, and add each of the 100 nodes to 100 other nodes, so now we have 100 other nodes that each have 1 child of the original 100 nodes, then animations become really slow (although CPU usage doesn't spike).

I'd like to make a reproduction soon...

@trusktr trusktr changed the title [BUG] Moving a bunch of nodes to a bunch of other nodes causes in credible amount of slowness in animations. [BUG] Moving a bunch of nodes to a bunch of other nodes causes incredible amount of slowness in animations. Aug 19, 2015
@trusktr
Copy link
Contributor Author

trusktr commented Aug 19, 2015

@michaelobriena When's a good time to meet? It'd be easiest to just show you my actual example (which I can't post online ATM). I can come to Labs any time.

@trusktr
Copy link
Contributor Author

trusktr commented Aug 19, 2015

It seems that when I add my ~100 nodes to some the other ~100 nodes (making pairs of parent-child), the graphics of my whole desktop become slow, yet CPU usage is low. It seems like something might be tripping up my video driver (nouveau in Linux). It only happens in this very specific scenario.

@alexanderGugel
Copy link
Member

Please post your code sample here. I doubt this has anything to do with your video driver. If this is true, there might be a bug in TransformSystem.

@michaelobriena
Copy link
Member

@trusktr as @alexanderGugel we can't really do anything without seeing an example. If you could pair it down to just red divs on the screen, I'm sure that would be acceptable to show in public.

@trusktr
Copy link
Contributor Author

trusktr commented Aug 19, 2015

@michaelobriena @alexanderGugel I'll come into labs today if I have time after the DMV, or tomorrow for sure, and I'll see about making a reproduction. It's not video that you guys need to see, it's the code, as it seems to be perfectly fine what I'm doing using only Engine's public API.

I tried in OS X, and the performance drop isn't very noticeable because the video drivers there work perfectly. The nvidia driver (nouveau) in Linux is a lot slower in general, so the performance drop is much more noticeable.

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

3 participants