Famous / engine

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

trusktr opened this issue · comments

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...

@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.

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.

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.

@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.

@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.