On 03.09.2010 00:04, Alexandre Bergel wrote:
This is partially the case in Mondrian. Objects located outside the window are not rendered. Ehm, my memory was a bit hazy.
In the version I used, MONode>displayOn: did do culling, no such luck for MOEdge though. Since MOGraphElement>>elementsToDisplay created a cache of ALL the subnodes and subedges of an element (as part of MONode>displayOn:), well, when the top element was told to displayOn:, it saw itself as visible, then displayOn:'ed all the objects and edges in the model (from the z-order sorted elementsToDisplayCache), leading to culling of offscreen objects, but drawing all edges in the entire model. That's what I meant with model more being suited for traversing btw, as the tree-structure itself makes sense for iterating the model, but not for rendering, as what you want from a model specialized for that, is deciding if the sub-elements of a node is safe to cull if the node itself is safe to cull. Cheers, Henry