From 7b800cf2903cf2166f0b43cd6d818dd7372241c6 Mon Sep 17 00:00:00 2001 From: "Jake.Stine" Date: Wed, 30 Sep 2009 12:34:19 +0000 Subject: [PATCH] wxWidgets (Win32): Disable debug trace logigng of Windows Messages, because it's really! slow. And not! useful. git-svn-id: http://pcsx2.googlecode.com/svn/trunk@1934 96395faa-99c1-11dd-bbfe-3dabce05a288 --- 3rdparty/wxWidgets/src/msw/window.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/3rdparty/wxWidgets/src/msw/window.cpp b/3rdparty/wxWidgets/src/msw/window.cpp index 4810bd68d7..d30941e7ba 100644 --- a/3rdparty/wxWidgets/src/msw/window.cpp +++ b/3rdparty/wxWidgets/src/msw/window.cpp @@ -2594,7 +2594,10 @@ wxWindowCreationHook::~wxWindowCreationHook() LRESULT WXDLLEXPORT APIENTRY _EXPORT wxWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) { // trace all messages - useful for the debugging -#ifdef __WXDEBUG__ + // PCSX2: Not really! Trace logging is shit slow, and is only really useful to devs of + // wxWidgets itself so I disabled it. -- air + +#if 0 //def __WXDEBUG__ wxLogTrace(wxTraceMessages, wxT("Processing %s(hWnd=%08lx, wParam=%8lx, lParam=%8lx)"), wxGetMessageName(message), (long)hWnd, (long)wParam, lParam); @@ -3417,7 +3420,9 @@ WXLRESULT wxWindowMSW::MSWWindowProc(WXUINT message, WXWPARAM wParam, WXLPARAM l if ( !processed ) { -#ifdef __WXDEBUG__ +// PCSX2: Trace logging is shit slow, and is only really useful to devs of wxWidgets itself +// so I disabled it. -- air +#if 0 //def __WXDEBUG__ wxLogTrace(wxTraceMessages, wxT("Forwarding %s to DefWindowProc."), wxGetMessageName(message)); #endif // __WXDEBUG__