Skip to content
This repository has been archived by the owner on Aug 17, 2021. It is now read-only.

Improve video CPU usage #42

Open
thejpster opened this issue Dec 1, 2018 · 2 comments
Open

Improve video CPU usage #42

thejpster opened this issue Dec 1, 2018 · 2 comments

Comments

@thejpster
Copy link
Owner

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
Copy link
Owner Author

@thejpster
Copy link
Owner Author

This would speed up #33 too.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant