On 14 Jan 2010, at 21:58, Ryan Florence wrote: > What's the benefit? Is it faster? Do they share something that makes it more > efficient? I haven't dug into the code yet but I'm planning on it. Maybe > looking for a few tips on what to look for.
From what I understand each Fx instance uses a separate timer (functions called using Function::periodical or similar). So: - With an Fx.Elements instance you will have the styles set (and the page rendered) 50 times a second. - With 2 Fx instances, you will have styles set (and the page rendered) 100 times a second. So, as JS tends to be quite slow, and re-rendering the page is expensive, I think that once you hit the limit of how many times the computer can render the page in a second, you can have jerkiness in the animations, as each step for each element will no longer be evenly spaced in time. With many Fx instances this limit can quickly be reached, especially on older hardware. (I think MooTools 2 will address this issue with a global timer, so that multiple Fx instances all use the same timer) Michal.
