On 11.3.2010 19:56, P T Withington wrote:
What platform are you compiling to? I recall there is a Flash player bug that bit G.ho.st that had something like what you describe.

swf10.
If you could remember what the bug was about I would be interested.


But also, I have to wonder if something with 100's of sub-menus doesn't need a different approach. I wonder how a human navigates such a large space.

It is true that for a hierarchical tree to be "navigable" on should not have more than 50 nodes under any given branch.
And that is also my plan for the data.
But do check one of your harddrives to see how many files and folders it contains.
Mine contained 546.570 files 34.748 folders.
And yet we all use the hierarchical tree structure to navigate them.

Back to the real issue.
I have noticed that turning off handlers/delegates does have an impact.
It is just tricky to turn them all of in complex objects.

Have you already implemented the enabled attribute in handler tag by the way?

At the moment it seems that the more I have objects the more processing goes on whenever I move the mouse. It does not matter where the mouse is moved and I also removed all my mouse related code to make sure the problem was not there. My current theory is that it's the handlers that get triggered whenever the mouse moves. I already unregistered all handlers related to mouse events but that seemed to alleviate the problem only by a small (still clearly noticable) amount.

Thanks for your time T.

- rami



On Mar 10, 2010, at 17:48, Rami Ojares <[email protected]> wrote:

Hi,

I have a tree structure (branches and leaves).
All of them react to various mouse events (mouseover, mousedown, mousetrackover etc.) I have implemented a mechanism where I initially load/construct only the first level of nodes.
Everything works fine and with good performance.
When I keep opening branches (some of which have over hundred subnodes) the mouse event performance starts to choke.

So I thought that whenever a node is not visible I disable all the delegates handling the mouse events.
No effect.
Then I tried unregistering the delegates when the node is not visible.
No effect.
Then I tried to set the clickable attribute to false for all the views that react to mouse events.
No effect.

Any suggestions?

- rami

Reply via email to