wined3d: Add WINED3D_BUFFER_HASDESC at index buffer creation
Norbert Lataille
nlataill at gmail.com
Sat Aug 20 11:46:34 CDT 2011
Hi,
Goal of this patch is to help creation of buffer objects for Index buffers.
I currently see many cases where wined3d doesn't create Buffer Objects
for Indexes,
which looks like an unwanted side effect of VBO Desc logic.
Patch is forcing WINED3D_BUFFER_HASDESC flag at Index Buffer creation time,
but there may be other (better) ways to achieve the same result in buffer.c
Performance gains on 3dmark06: http://norbert.lataille.free.fr/boindex.html
Impact on X3TC, WoW is less visible:
http://norbert.lataille.free.fr/perf.html (line: Index).
Comments are welcome,
Thanks,
---
dlls/wined3d/buffer.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-WINED3D_BUFFER_HASDESC-at-index-buffer-creation.txt
Type: text/x-patch
Size: 406 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20110820/33fd1ced/attachment.bin>
More information about the wine-patches
mailing list