Hi Matteo, On 3. May 2012, at 22:21, Matteo Hausner wrote:
> The goal of the whole project is to develop a simple game on top of an > already existing scenegraph, that has to be integrated into Equalizer. Nice. :) > [snip] So far it looks like one typical way to implement scene graph distribution. > Now in eq::Channel::frameDraw() I draw the graph using a simple class > called Renderer, which is member of eq::Window, calling > Renderer->Render() invokes sync(frameID) on the root node and > afterwards the traversal of the graph. > Similarly to the commit() call that gets passed on, I pass on the > sync() call through the whole graph, using the version values stored > inside the parent nodes. I'm assuming you've got one copy of the SG per node. In that case, you should do the sync() in Node::frameStart(). > Generally my implementation seems to be working, but in its current > state it is leaking those huge amounts of memory every frame, after > adding nodes to the graph and even more, when performing > transformations onto graph nodes. Is the application, the render clients or both leaking? You've got to figure out who is leaking the memory. The delta objects buffer quite some stuff (see [1]), so that might be one cause. However, they should not keep leaking memory over time. Have a try with valgrind on a small scene, let it run for some frames with modifications and see if you have hard losses, or if it's simply a matter of data pooling up somewhere. > The project is still running until the month July and I already spoke > to the other people involved, that once we have reached a final and > working state we might be willing to hand our source out, to serve as > an example application. Unfortunately right now there seems to be no > freely available implementation of a dynamic scenegraph based on > Equalizer(?). That's unfortunately correct, and this project would indeed be interesting. What SG are we talking about? HTH, Stefan. _______________________________________________ eq-dev mailing list [email protected] http://www.equalizergraphics.com/cgi-bin/mailman/listinfo/eq-dev http://www.equalizergraphics.com

