1
0
Fork 0

DBG: don't refresh the GUI unnecessarily

This commit is contained in:
mrexodia 2016-10-22 15:47:35 +02:00
parent ea66b8bd51
commit 3951719a12
No known key found for this signature in database
GPG Key ID: FC89E0AAA0C1AAD8
1 changed files with 2 additions and 3 deletions

View File

@ -183,12 +183,12 @@ static DWORD WINAPI dumpRefreshThread(void* ptr)
{ {
if(bStopDumpRefreshThread) if(bStopDumpRefreshThread)
break; break;
Sleep(10); Sleep(100);
} }
if(bStopDumpRefreshThread) if(bStopDumpRefreshThread)
break; break;
GuiUpdateDumpView(); GuiUpdateDumpView();
Sleep(200); Sleep(400);
} }
return 0; return 0;
} }
@ -414,7 +414,6 @@ void DebugUpdateGui(duint disasm_addr, bool stack)
strcat_s(threadName, " "); strcat_s(threadName, " ");
sprintf_s(title, GuiTranslateText(QT_TRANSLATE_NOOP("DBG", "File: %s - PID: %X - %sThread: %s%X%s")), szBaseFileName, fdProcessInfo->dwProcessId, modtext, threadName, currentThreadId, threadswitch); sprintf_s(title, GuiTranslateText(QT_TRANSLATE_NOOP("DBG", "File: %s - PID: %X - %sThread: %s%X%s")), szBaseFileName, fdProcessInfo->dwProcessId, modtext, threadName, currentThreadId, threadswitch);
GuiUpdateWindowTitle(title); GuiUpdateWindowTitle(title);
GuiUpdateAllViews();
} }
void DebugUpdateGuiSetState(duint disasm_addr, bool stack, DBGSTATE state = paused) void DebugUpdateGuiSetState(duint disasm_addr, bool stack, DBGSTATE state = paused)