mirror of
https://github.com/ringtailsoftware/uvm32.git
synced 2026-06-05 22:43:39 +00:00
Only send syscall every other frame, which makes VM stop to draw
This commit is contained in:
parent
2d07f6fcc0
commit
2108083b75
1 changed files with 5 additions and 2 deletions
|
|
@ -19,7 +19,10 @@ void main(void) {
|
||||||
framebuffer[y * WIDTH + x] = (r << 24) | (g << 16) | (b << 8) | 0xFF;
|
framebuffer[y * WIDTH + x] = (r << 24) | (g << 16) | (b << 8) | 0xFF;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
framecount++;
|
||||||
|
if (framecount % 2 == 0) {
|
||||||
printdec(framecount++);
|
printdec(framecount++);
|
||||||
println("");
|
println("");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue