SFML community forums

Bindings - other languages => DotNet => Topic started by: omeg on May 09, 2012, 10:41:42 am

Title: RenderTarget.Draw(Vertex[]) missing size parameter
Post by: omeg on May 09, 2012, 10:41:42 am
Why the above method omits the size parameter? In most cases you have one big array for vertex cache, its size don't usually change, but number of actual vertices does. Right now you need to reallocate the array every time the call is made and that puts a lot of strain on the GC.
Title: Re: RenderTarget.Draw(Vertex[]) missing size parameter
Post by: Laurent on May 09, 2012, 10:45:05 am
http://en.sfml-dev.org/forums/index.php?topic=7238.0
Title: Re: RenderTarget.Draw(Vertex[]) missing size parameter
Post by: omeg on May 09, 2012, 10:48:08 am
Whoops, I search a bit but stopped at 2 months in the past. Thanks.
Title: Re: RenderTarget.Draw(Vertex[]) missing size parameter
Post by: Laurent on May 09, 2012, 08:25:52 pm
I've added the Draw(Vertex[], start, count, ...) overloads.
Title: Re: RenderTarget.Draw(Vertex[]) missing size parameter
Post by: omeg on May 09, 2012, 09:08:05 pm
Awesome - it seems to work fine and I see visible FPS gain in my GWEN.Net renderer ;)