It is currently Sun Jun 16, 2019 5:37 am

All times are UTC - 7 hours





Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Mon May 13, 2019 12:52 am 
Offline

Joined: Thu Apr 18, 2019 9:13 am
Posts: 140
i just wrote a little table-driven test which uses DMC interrupts to produce raster splits at mostly-eight-line intervals. For purposes of this demo, the raster IRQ simply changes the RGB emphasis bits (as as to make the effects visible in the screen borders) and all stores occur the same amount of time after the IRQ. A practical game should adjust the amount of time before each store to compensate for the fact that the IRQs aren't triggered at quite the same time every scan line, but compatibility testing is probably better served by letting some of the stores be barely visible.

I'd like to know if this works with NTSC Famiclones the same way as it does on my vintage NES.

The worst spots on my NES are on the white bar just beyond the midpoint. That bar is long enough that even though the transition from blue to white sometimes happens early (reaching back one dot on my set) the transition from white to red happens late (reaching the fourth dot). If the code were tuned and optimized, the overhead could probably be reduced to under 100 cycles per split point, suggesting that this approach could be used to let Ruby Runner show 512 tiles on screen, but it would only be worth pursuing that if the raster timings end up being consistent on a wide enough range of machines.

The present version of the code wouldn't have a chance of working on PAL. PAL looks like it could be supported with somewhat more overhead per split; if alternate splits are timed for 900 cycles and 922, the splits following the 922-cycle splits would need to do their last APU store a minimum of ~98 cycles after the IRQ is triggered (vs 84 for NTSC) but it might still be reasonable.


Attachments:
File comment: Simple test of using DMC IRQs for raster splits
rrIrqTest.nes [40.02 KiB]
Downloaded 121 times
Top
 Profile  
 
PostPosted: Tue May 21, 2019 9:46 am 
Offline

Joined: Tue Oct 16, 2018 5:46 am
Posts: 95
Location: Gothenburg, Sweden
I have a bunch of NTSC famiclone chips but unfortunately none of the PPU's seem to be fully functional - they all display some sort of glitching and artefacts. In my experience it's hard to find NTSC famiclones online, as most chinese retailers tend to stock PAL chips even when advertised as NTSC. My best bet would be to get something that was sold in south america. Maybe tokumaru would be able to help?


Top
 Profile  
 
PostPosted: Tue May 21, 2019 9:54 am 
Offline

Joined: Thu Apr 18, 2019 9:13 am
Posts: 140
pwnskar wrote:
I have a bunch of NTSC famiclone chips but unfortunately none of the PPU's seem to be fully functional - they all display some sort of glitching and artefacts. In my experience it's hard to find NTSC famiclones online, as most chinese retailers tend to stock PAL chips even when advertised as NTSC. My best bet would be to get something that was sold in south america. Maybe tokumaru would be able to help?


My main intention was to ensure that I was compatible with any NTSC machines people might have. I think there are NTSC machines other than the front-loader NES; perhaps I should have used a different term?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 7 hours


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group