Permalink
Browse files

removing profiling code, speedup

  • Loading branch information...
1 parent ab83a08 commit e1db612863d9f7ee5e8ed1d146222381ab1988b7 @gligli committed Feb 27, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 nullDC/dc/sh4/sh4_interpreter.cpp
@@ -680,12 +680,16 @@ u64 time_update_system=0;
void FASTCALL spgUpdatePvr(u32 cycles); // quicker to use direct plugin call
+//#define PROF_UPDATESYSTEM
+
extern "C" {
//448 Cycles
//as of 7/2/2k8 this is fixed to 448 cycles
int __attribute__((externally_visible)) __fastcall UpdateSystem()
{
+#ifdef PROF_UPDATESYSTEM
u64 ust=mftb();
+#endif
UpdateTMU(448);
spgUpdatePvr(448);
@@ -697,8 +701,10 @@ int __attribute__((externally_visible)) __fastcall UpdateSystem()
int rv=UpdateINTC();
+#ifdef PROF_UPDATESYSTEM
ust=mftb()-ust;
time_update_system+=ust;
+#endif
return rv;
}

0 comments on commit e1db612

Please sign in to comment.