mirror of https://github.com/PCSX2/pcsx2.git
Disabled a superVU optimization that slowed down VU intense games lots.
Big speedup for Persona4 and Tekken5 :) git-svn-id: http://pcsx2.googlecode.com/svn/trunk@521 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
parent
77d57a78c7
commit
af89808f8f
|
@ -50,7 +50,7 @@ extern void iDumpVU1Registers();
|
||||||
// SuperVURec optimization options, uncomment only for debugging purposes
|
// SuperVURec optimization options, uncomment only for debugging purposes
|
||||||
#define SUPERVU_CACHING // vu programs are saved and queried via memcompare (should be no reason to disable this)
|
#define SUPERVU_CACHING // vu programs are saved and queried via memcompare (should be no reason to disable this)
|
||||||
#define SUPERVU_WRITEBACKS // don't flush the writebacks after every block
|
#define SUPERVU_WRITEBACKS // don't flush the writebacks after every block
|
||||||
#define SUPERVU_X86CACHING // use x86reg caching (faster)
|
//#define SUPERVU_X86CACHING // use x86reg caching (faster) (not really. rather lots slower :p (rama) )
|
||||||
#define SUPERVU_VIBRANCHDELAY // when integers are modified right before a branch that uses the integer,
|
#define SUPERVU_VIBRANCHDELAY // when integers are modified right before a branch that uses the integer,
|
||||||
// the old integer value is used in the branch
|
// the old integer value is used in the branch
|
||||||
// fixes kh2
|
// fixes kh2
|
||||||
|
@ -1899,6 +1899,7 @@ void VuBaseBlock::AssignVFRegs()
|
||||||
for(i = 1; i >= 0; --i) {
|
for(i = 1; i >= 0; --i) {
|
||||||
_VURegsNum* regs = itinst->regs+i;
|
_VURegsNum* regs = itinst->regs+i;
|
||||||
|
|
||||||
|
#ifdef SUPERVU_X86CACHING
|
||||||
// redo the counters so that the proper regs are released
|
// redo the counters so that the proper regs are released
|
||||||
for(int j = 0; j < XMMREGS; ++j) {
|
for(int j = 0; j < XMMREGS; ++j) {
|
||||||
if( xmmregs[j].inuse ) {
|
if( xmmregs[j].inuse ) {
|
||||||
|
@ -1949,6 +1950,7 @@ void VuBaseBlock::AssignVFRegs()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif //SUPERVU_X86CACHING
|
||||||
|
|
||||||
if( regs->VFread0 ) _addNeededVFtoXMMreg(regs->VFread0);
|
if( regs->VFread0 ) _addNeededVFtoXMMreg(regs->VFread0);
|
||||||
if( regs->VFread1 ) _addNeededVFtoXMMreg(regs->VFread1);
|
if( regs->VFread1 ) _addNeededVFtoXMMreg(regs->VFread1);
|
||||||
|
|
Loading…
Reference in New Issue