Stefan Dösinger : wined3d: Save some memory in vertex buffers.

Alexandre Julliard julliard at winehq.org
Fri Apr 10 08:10:14 CDT 2009


Module: wine
Branch: master
Commit: 014c4bfc70a4d4e60f033d579d1be13a46f65170
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=014c4bfc70a4d4e60f033d579d1be13a46f65170

Author: Stefan Dösinger <stefan at codeweavers.com>
Date:   Thu Apr  9 18:40:57 2009 +0200

wined3d: Save some memory in vertex buffers.

In most cases we're fine with the vbo and glMapBuffer and never use the actual
heap memory copy. Try to stick to just the vbo copy and avoid allocating the
extra heap memory. In case it is needed(emulation or vertex conversion), fall
back to the old double buffering mode.

---

 dlls/wined3d/buffer.c          |   96 +++++++++++++++++++++++++++++++++++-----
 dlls/wined3d/device.c          |    4 +-
 dlls/wined3d/drawprim.c        |   10 ++--
 dlls/wined3d/wined3d_private.h |    2 +
 4 files changed, 93 insertions(+), 19 deletions(-)

Diff:   http://source.winehq.org/git/wine.git/?a=commitdiff;h=014c4bfc70a4d4e60f033d579d1be13a46f65170



More information about the wine-cvs mailing list