diff options
| author | Pierre Bourdon <delroth@lse.epita.fr> | 2013-08-15 00:25:25 +0200 |
|---|---|---|
| committer | Pierre Bourdon <delroth@lse.epita.fr> | 2013-08-15 00:26:03 +0200 |
| commit | 7622d5b35411dee948a22e97a9f56337fc4695c9 (patch) | |
| tree | 480d82595a2f33d03c2b0501bd09c7ef8d8651fb /Source/Core/VideoCommon/Src/BPStructs.cpp | |
| parent | 998194246ce99dae73c372d4b821c8180ffad5a8 (diff) | |
Only call SetGenerationMode from BPWritten if the cull mode changed.
Should decrease CPU usage on the GPU thread by a bit in the OGL backend.
Diffstat (limited to 'Source/Core/VideoCommon/Src/BPStructs.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/Src/BPStructs.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/Src/BPStructs.cpp b/Source/Core/VideoCommon/Src/BPStructs.cpp index ce0346b523..00cecf0082 100644 --- a/Source/Core/VideoCommon/Src/BPStructs.cpp +++ b/Source/Core/VideoCommon/Src/BPStructs.cpp @@ -153,7 +153,10 @@ void BPWritten(const BPCmd& bp) bpmem.genMode.numtexgens, bpmem.genMode.numcolchans, bpmem.genMode.multisampling, bpmem.genMode.numtevstages+1, bpmem.genMode.cullmode, bpmem.genMode.numindstages, bpmem.genMode.zfreeze); - SetGenerationMode(); + + // Only call SetGenerationMode when cull mode changes. + if (bp.changes & 0xC000) + SetGenerationMode(); break; } case BPMEM_IND_MTXA: // Index Matrix Changed |
