[1] WineD3D: Add the state dirtification infrastructure

Stefan Dösinger stefan at codeweavers.com
Sun Dec 17 05:58:05 CST 2006

Am Samstag 16 Dezember 2006 16:51 schrieben Sie:
> Stefan Dösinger <stefan at codeweavers.com> writes:
> > The main arguments for a list were:
> >
> > * The shader constant code uses it too. It keeps the code somewhat
> > simmilar * memory usage. An array has a fixed sizeof(DWORD) *
> > STATE_HIGHEST mem usage, while a list has sizeof(DWORD) + 2*sizeof(void
> > *) * number of dirty states memory usage. well, that was the idea
> That list thing still looks very inefficient. If you don't want a full
> array (though I note you have one anyway in your code) you can use a
> growing DWORD array of dirty states id; then adding a state become
> simply something like dirtyStates[count++] = state.
That was my original idea, I think I'll go back to that :-)
-------------- 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/20061217/a6aaafad/attachment.pgp

More information about the wine-devel mailing list