Speed up raw drawing by calling EventAvail and SystemTask less often.

They are now called only every 16 lines, instead of every line. This is enough to maintain reasonable responsiveness, while providing a measurable speedup.
This commit is contained in:
Stephen Heumann 2016-05-20 23:09:40 -05:00
parent aa38f6d209
commit 1b4d47b690
1 changed files with 5 additions and 4 deletions

9
raw.cc
View File

@ -177,10 +177,11 @@ void RawDraw (void) {
* instead processing the minimum necessary periodic tasks and then
* going straight to the next line of data.
*/
if (EventAvail(0xFFFF, &unusedEventRec))
return;
SystemTask(); /* Let periodic Desk Accesories do their things */
if (!(drawingLine & 15)) {
if (EventAvail(0xFFFF, &unusedEventRec))
return;
SystemTask(); /* Let periodic Desk Accesories do their things */
}
TCPIPPoll(); /* Let Marinetti keep processing data */
} while (1);