Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a fast mode #1

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Conversation

nathsou
Copy link
Owner

@nathsou nathsou commented Jul 26, 2023

Add a fast mode for slower devices

Approaches:

PPU:

  • Switch from pixel by pixel rendering to frame by frame rendering (TODO: handle mid-frame updates)
  • Keep both rendered nametables in memory and only update a background tile when it changes
  • Implement scrolling by sliding a window into the 2 frame buffers
  • Cache rendered tiles

CPU:

  • JIT compilation?

@nathsou nathsou self-assigned this Jul 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant