(svn r22820) -Codechange: perform a full (re)draw cycle in the first draw during progress instead of waiting 200ms

This commit is contained in:
rubidium
2011-08-24 12:18:53 +00:00
parent 4557af2fce
commit 7496bd66e7
6 changed files with 32 additions and 13 deletions

View File

@@ -1561,7 +1561,7 @@ void DrawDirtyBlocks()
_modal_progress_work_mutex->EndCritical();
/* Wait a while and update _realtime_tick so we are given the rights */
CSleep(MODAL_PROGRESS_REDRAW_TIMEOUT);
if (!IsFirstModalProgressLoop()) CSleep(MODAL_PROGRESS_REDRAW_TIMEOUT);
_realtime_tick += MODAL_PROGRESS_REDRAW_TIMEOUT;
_modal_progress_paint_mutex->BeginCritical();
_modal_progress_work_mutex->BeginCritical();