Gameboy core

https://github.com/MiSTer-devel/Main_MiSTer/wiki

Moderators: Mug UK, Zorro 2, spiny, Greenious, Sorgelig, Moderator Team

Locked
trashuncle
Atari maniac
Atari maniac
Posts: 93
Joined: Fri Jul 05, 2019 9:34 pm

Re: Gameboy core

Post by trashuncle »

It is recommend you use the stability feature. Why would you turn it off?
SegaSnatcher
Atari freak
Atari freak
Posts: 50
Joined: Sun Oct 13, 2019 12:34 pm

Re: Gameboy core

Post by SegaSnatcher »

trashuncle wrote:It is recommend you use the stability feature. Why would you turn it off?
For better input latency. I'm looking at the LCD code and it mentions a double buffer. So I'm wondering if when you turn on stability feature it adds 1 - 2 frames of lag, or does it work like the GBA sync to core buffer that is really fast?
Sorgelig
Ultimate Atarian
Ultimate Atarian
Posts: 6348
Joined: Mon Dec 14, 2015 10:51 am
Location: Russia/Taiwan

Re: Gameboy core

Post by Sorgelig »

Code is mostly copy-pasted from GBA core. So it's very similar.
paulbnl
Captain Atari
Captain Atari
Posts: 151
Joined: Wed Oct 24, 2018 9:43 am

Re: Gameboy core

Post by paulbnl »

SegaSnatcher wrote: For better input latency. I'm looking at the LCD code and it mentions a double buffer. So I'm wondering if when you turn on stability feature it adds 1 - 2 frames of lag, or does it work like the GBA sync to core buffer that is really fast?
It adds about 0.4 frame latency to the 0-1 frame latency of the previous releases but that is at the top of the screen only. At the bottom it is 0 added latency.

If you disable stabilization then the maximum latency is 0.4 frames at the top of the screen and 0 at the bottom but you will have to deal with unstable video if you use a CRT or vsync_adjust=2.
SegaSnatcher
Atari freak
Atari freak
Posts: 50
Joined: Sun Oct 13, 2019 12:34 pm

Re: Gameboy core

Post by SegaSnatcher »

Sorgelig wrote:Code is mostly copy-pasted from GBA core. So it's very similar.
paulbnl wrote:
SegaSnatcher wrote: For better input latency. I'm looking at the LCD code and it mentions a double buffer. So I'm wondering if when you turn on stability feature it adds 1 - 2 frames of lag, or does it work like the GBA sync to core buffer that is really fast?
It adds about 0.4 frame latency to the 0-1 frame latency of the previous releases but that is at the top of the screen only. At the bottom it is 0 added latency.

If you disable stabilization then the maximum latency is 0.4 frames at the top of the screen and 0 at the bottom but you will have to deal with unstable video if you use a CRT or vsync_adjust=2.
Thanks for the detailed response. Glad to see you were able to use some code from the GBA core to help with stability.
Mills
Atari User
Atari User
Posts: 33
Joined: Sun Oct 13, 2019 10:57 am

Re: Gameboy core

Post by Mills »

Great work. Last update fixes a lot of scanline issues. But there are still some bugs while running "hi-colour" images like in rayman intro.
:).
parski
Retro freak
Retro freak
Posts: 11
Joined: Fri Oct 12, 2018 1:58 pm

Re: Gameboy core

Post by parski »

Found a great in-depth article about the GBC audio chip. I thought I'd share it in case someone here could find it useful:

Reverse-engineering the audio chip in the Nintendo Game Boy Color
Sorgelig
Ultimate Atarian
Ultimate Atarian
Posts: 6348
Joined: Mon Dec 14, 2015 10:51 am
Location: Russia/Taiwan

Re: Gameboy core

Post by Sorgelig »

parski wrote:Found a great in-depth article about the GBC audio chip. I thought I'd share it in case someone here could find it useful:

Reverse-engineering the audio chip in the Nintendo Game Boy Color
it's almost generic audio amplifier. Just suitable for several audio outputs in GBC. It has nothing to do with sound generation.
parski
Retro freak
Retro freak
Posts: 11
Joined: Fri Oct 12, 2018 1:58 pm

Re: Gameboy core

Post by parski »

Sorgelig wrote:it's almost generic audio amplifier. Just suitable for several audio outputs in GBC. It has nothing to do with sound generation.
You're welcome. 8)
Locked

Return to “MiSTer”