[Video] Remove PERFORMANCE code

This commit is contained in:
zilmar 2017-05-17 18:16:36 +10:00
parent c324e3b8fb
commit 42224ef5e9
3 changed files with 5 additions and 25 deletions

View File

@ -70,12 +70,6 @@ extern "C" {
extern uint32_t update_screen_count;
//#define PERFORMANCE
#ifdef PERFORMANCE
extern int64 perf_cur;
extern int64 perf_next;
#endif
extern int GfxInitDone;
extern bool g_romopen;
extern int to_fullscreen;
@ -118,7 +112,7 @@ extern "C" {
int NormalMemory; /* a normal uint8_t array */
int MemoryBswaped; /* a normal uint8_t array where the memory has been pre
bswap on a dword (32 bits) boundry */
} PLUGIN_INFO;
} PLUGIN_INFO;
typedef struct
{

View File

@ -64,11 +64,6 @@ extern int g_width, g_height;
HINSTANCE hinstDLL = NULL;
#endif
#ifdef PERFORMANCE
int64 perf_cur;
int64 perf_next;
#endif
uint32_t region = 0;
unsigned int BMASK = 0x7FFFFF;
@ -1070,7 +1065,7 @@ void CALL RomClosed(void)
if (evoodoo)
{
ReleaseGfx();
}
}
}
static void CheckDRAMSize()

View File

@ -624,9 +624,6 @@ EXPORT void CALL ProcessDList(void)
// Go to the next instruction
rdp.pc[rdp.pc_i] = (a + 8) & BMASK;
#ifdef PERFORMANCE
perf_cur = CDateTime().SetToNow().Value();
#endif
// Process this instruction
gfx_instruction[g_settings->ucode()][rdp.cmd0 >> 24]();
@ -642,16 +639,10 @@ EXPORT void CALL ProcessDList(void)
rdp.pc_i--;
}
}
#ifdef PERFORMANCE
perf_next = CDateTime().SetToNow().Value();
sprintf(out_buf, "perf %08lx: %016I64d", a - 8, (perf_next - perf_cur).Format(_T("%l")).mb_str());
rdp_log << out_buf;
#endif
} while (!rdp.halt);
}
#ifdef CATCH_EXCEPTIONS
}
#ifdef CATCH_EXCEPTIONS
}
catch (...) {
if (g_fullscreen)
{
@ -695,7 +686,7 @@ EXPORT void CALL ProcessDList(void)
CI_SET = FALSE;
}
WriteTrace(TraceRDP, TraceDebug, "ProcessDList end");
}
}
// undef - undefined instruction, always ignore
void undef()