Forum Libraries, Components, and Plugins

UrhoSharp - Memory leak with DebugRenderer sphere?

Hi all, just wanted to report what I think is a bug in UrhoSharp debug renderer.

If I call this every frame:

debugRenderer.AddSphere(new SphereShape(point, 1.5f), someColor, true);

Memory usage keeps raising up until Urho eventually crash with out of memory exception.
If however I replace the shape with something else, for example a cross:

debugRenderer.AddCross(point, 4f, someColor, true);

There's no problem.

Note that a cross only receive struct params (ie non GC), while a SphereShape is a class (GC).
Let me know if you need any additional info, or if you think I may have misused the renderer.

Thanks,

Sign In or Register to comment.