Henri Verbeet : wined3d: Try to avoid redundant constant updates.

Alexandre Julliard julliard at winehq.org
Fri Aug 16 14:23:46 CDT 2013


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

Author: Henri Verbeet <hverbeet at codeweavers.com>
Date:   Fri Aug 16 09:12:30 2013 +0200

wined3d: Try to avoid redundant constant updates.

This gives a minor performance improvement. For example, in 3DMark03 Game Test
1 this gives about a 4% improvement, in the Counter Strike: Source stress test
it's about 1%. (NVIDIA GF9600M, Intel T9550, 1024x768).

---

 dlls/wined3d/arb_program_shader.c  |   65 +++++----
 dlls/wined3d/ati_fragment_shader.c |    1 -
 dlls/wined3d/context.c             |    8 +-
 dlls/wined3d/device.c              |   24 ++--
 dlls/wined3d/glsl_shader.c         |  248 ++++++++++++++++++------------------
 dlls/wined3d/shader.c              |    4 +-
 dlls/wined3d/state.c               |   65 +++-------
 dlls/wined3d/utils.c               |    4 -
 dlls/wined3d/wined3d_private.h     |   29 +++--
 9 files changed, 214 insertions(+), 234 deletions(-)

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



More information about the wine-cvs mailing list