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

Feature/scaled gb video #3

Merged
merged 12 commits into from
Nov 14, 2022
Merged

Feature/scaled gb video #3

merged 12 commits into from
Nov 14, 2022

Conversation

finger563
Copy link
Contributor

  • Use new espp submodule (that added support for a lcd_send_lines function)
  • Enable support for queued SPI transmits to screen for bulk transfers (used by emulators and LVGL)
  • Enable scaling modes in gameboy video task (original 160x144, fit 266x240, fill 320x240)
  • Enable scaling modes in nes video task (original / fit 256x224, fill 320x224). NOTE: I did not scale the y axis on the NES emulation since it's so close to the native height of the display.
  • Add scaling mode selection (dropdown) to LVGL gui in the settings page and use that configuration when starting a rom.
  • Cleaned up some unused / unneded lcd functions
  • Changed cpu_emulate(32832) at end of run_to_vblank() function for emulating gbc frame to reduce the number of cycles to emulate for. Result is faster emulation with little to no discernable glitches.

…eo output can do more work (scaling or filling the output to the screen) without bogging down the emulation loop.
… down on cpu_emulate(...) call... which seems to have sped things up enough without introducing glitches..
…of color data to the screen. cleaned up spi_lcd to remove unused / unneeded code and refactored nofrendo-esp32/video_audio to use simplified code. gameboy emulation can now run with 3 different video scalings: original (1:1, 160x144), fit (1:1.667, 266:240), and fill (320x240).
… allowing the user to select original, fit, or fill.
… the selected video scaling when starting emulation for gbc / nes.
@finger563 finger563 merged commit b9fd31e into main Nov 14, 2022
@finger563 finger563 deleted the feature/scaled-gb-video branch November 14, 2022 20:33
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