diff options
| author | hrydgard <hrydgard@gmail.com> | 2009-08-09 11:03:58 +0000 |
|---|---|---|
| committer | hrydgard <hrydgard@gmail.com> | 2009-08-09 11:03:58 +0000 |
| commit | 6003c9ecd2b624a2ef78a7ae14918eb275a118f5 (patch) | |
| tree | a7155369aa31623c0067617b7e3886145a3cb0c6 /Source/Core/VideoCommon/Src/PixelShaderManager.cpp | |
| parent | 95b39da7cad68e1bd1a9c8be713ab1df7988f3d0 (diff) | |
Frameskipping more aggressive (minor speedup, plz report any serious problems). Initial display list cache implementation, disabled for now. Various cleanup.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3952 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/VideoCommon/Src/PixelShaderManager.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/Src/PixelShaderManager.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Source/Core/VideoCommon/Src/PixelShaderManager.cpp b/Source/Core/VideoCommon/Src/PixelShaderManager.cpp index 7bdaa36cbc..c0d8a7e4c6 100644 --- a/Source/Core/VideoCommon/Src/PixelShaderManager.cpp +++ b/Source/Core/VideoCommon/Src/PixelShaderManager.cpp @@ -234,6 +234,7 @@ void PixelShaderManager::SetPSTextureDims(int texid) SetPSConstant4fv(C_TEXDIMS + texid, fdims); } +// This one is high in profiles (0.5%) void PixelShaderManager::SetColorChanged(int type, int num) { int r = bpmem.tevregs[num].low.a; @@ -241,10 +242,10 @@ void PixelShaderManager::SetColorChanged(int type, int num) int b = bpmem.tevregs[num].high.a; int g = bpmem.tevregs[num].high.b; float *pf = &lastRGBAfull[type][num][0]; - pf[0] = (float)r / 255.0f; - pf[1] = (float)g / 255.0f; - pf[2] = (float)b / 255.0f; - pf[3] = (float)a / 255.0f; + pf[0] = (float)r * (1.0f / 255.0f); + pf[1] = (float)g * (1.0f / 255.0f); + pf[2] = (float)b * (1.0f / 255.0f); + pf[3] = (float)a * (1.0f / 255.0f); s_nColorsChanged[type] |= 1 << num; PRIM_LOG("pixel %scolor%d: %f %f %f %f\n", type?"k":"", num, pf[0], pf[1], pf[2], pf[3]); } |
