Simplify critical output flushing.
This commit is contained in:
@@ -424,10 +424,9 @@ Dispatch(void)
|
|||||||
while (!isItTimeToYield)
|
while (!isItTimeToYield)
|
||||||
{
|
{
|
||||||
if (*icheck[0] != *icheck[1])
|
if (*icheck[0] != *icheck[1])
|
||||||
{
|
|
||||||
ProcessInputEvents();
|
ProcessInputEvents();
|
||||||
|
|
||||||
FlushIfCriticalOutputPending();
|
FlushIfCriticalOutputPending();
|
||||||
}
|
|
||||||
#ifdef SMART_SCHEDULE
|
#ifdef SMART_SCHEDULE
|
||||||
if (!SmartScheduleDisable &&
|
if (!SmartScheduleDisable &&
|
||||||
(SmartScheduleTime - start_tick) >= SmartScheduleSlice)
|
(SmartScheduleTime - start_tick) >= SmartScheduleSlice)
|
||||||
@@ -483,9 +482,6 @@ Dispatch(void)
|
|||||||
client->errorValue, result);
|
client->errorValue, result);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
#ifdef DAMAGEEXT
|
|
||||||
FlushIfCriticalOutputPending ();
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
FlushAllOutput();
|
FlushAllOutput();
|
||||||
#ifdef SMART_SCHEDULE
|
#ifdef SMART_SCHEDULE
|
||||||
|
|||||||
Reference in New Issue
Block a user