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:
parent
aa38f6d209
commit
1b4d47b690
9
raw.cc
9
raw.cc
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue