Forum Libraries, Components, and Plugins

Announcement:

The Xamarin Forums have officially moved to the new Microsoft Q&A experience. Microsoft Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

To create new threads and ask questions head over to Microsoft Q&A for .NET and get involved today.

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.