D3D9: Rework the converted vertex declaration management

Stefan Dösinger stefan at codeweavers.com
Mon Apr 16 05:13:34 CDT 2007

> Growing the array by a single element each time looks a bit expensive.
> Also note that you could use HeapReAlloc there.
Well, there won't be much growing operation since the number of possible FVF 
code combinations is limited and I expect all the fvf codes to be used 
somewhen in the first frame, thus don't cause a performance penality later.

I want to send another patch which makes the array sorted today, and with that 
growing by more than one element or using HeapReAlloc won't buy us much since 
we have to iterate over the whole existing array anyway(to search for the 
place, and shift the bigger elements).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-devel/attachments/20070416/780f3916/attachment.pgp

More information about the wine-devel mailing list