monotron icon indicating copy to clipboard operation
monotron copied to clipboard

Improve video CPU usage

Open thejpster opened this issue 7 years ago • 2 comments

Here's an idea to reduce the busy-waits during video rendering.

Break the frame into 5 points, A through E.

At A: spi_off(); audio_play(); spi_prefill(); audio_generate(); At B: sync pulse on (will occur during A interrupt) At C: sync pulse off At D: execute nops (low priority) At E: spi_on(); spi_int(on);

Spi_int(): pull bytes from FB and load SPI until SPI full. When eol found, disable interrupt. Spi_prefill(): call spi_int()

thejpster avatar Dec 01 '18 17:12 thejpster

https://photos.app.goo.gl/PMAcuFd5dn9UoL7e8

thejpster avatar Dec 01 '18 17:12 thejpster

This would speed up #33 too.

thejpster avatar Dec 22 '18 12:12 thejpster