2009/12/16 Stefan Dösinger stefan@codeweavers.com:
Actually, since we're not going to Unmap-flush and PreLoad() the buffer(its either-or), I can use the same data structure for the stack and list(or well, dynamic array). I just have to watch out not to remove elements in any place in unlock that affects DOUBLEBUFFER buffers.
Sounds fragile, but I'm willing to wait and see what the final patch looks like.
Here is what I have so far. Completely untested, and the flushing is not yet integrated.
Yeah, it has some issues :-)
For what it's worth, I think I prefer offset/size over start/len, but I guess that's completely subjective.