It is currently Mon Dec 18, 2017 12:17 am

All times are UTC - 7 hours





Post new topic Reply to topic  [ 134 posts ]  Go to page Previous  1 ... 4, 5, 6, 7, 8, 9  Next
Author Message
 Post subject: Re: 240p test suite
PostPosted: Sun Jun 19, 2016 4:32 pm 
Offline
User avatar

Joined: Sat Apr 18, 2009 4:36 am
Posts: 260
Location: Russia
I've found a bug in 240p v.0.08.2:
If you run test on Dendy mode, it detects as "Dendy" (right bottom) until you exit "CPU clock speed test".
Dendy detects as "PAL" after exit this test.

You can repeat this bug on punes\nintendulator\nestopia etc


Top
 Profile  
 
 Post subject: Re: 240p test suite
PostPosted: Sun Jun 19, 2016 7:26 pm 
Offline

Joined: Sun Sep 19, 2004 11:12 pm
Posts: 19355
Location: NE Indiana, USA (NTSC)
Eugene.S wrote:
If you run test on Dendy mode, it detects as "Dendy" (right bottom) until you exit "CPU clock speed test".
Dendy detects as "PAL" after exit this test.

Thanks. I reproduced the problem in FCEUX SVN, which has support for the Dendy region. The fix is to open src/overclock.s and change all instances of tvSystem to oc_tvSystem if they aren't already. I'll include this fix in the next version.

I downloaded version 1.03 of the test suite for Super NES and plan to incorporate some of its new features.
  • When audio is on, manual lag test beeps when A is pressed and flashes when reticles align
    Fixed in forthcoming 0.09.
  • New "Audio sync test" designed to be readable on a scope: Black screen with an 8 pixel tall white floor. A 2x2 pixel square travels up from the floor for 60 frames then down, and at 40, 60, 80, and 100 frames, 24x24 pixel squares close in from the sides; the bottom of these is about 20px above the peak of the square's travel. At 120, the screen turns white and a 1000 Hz tone plays for 2 frames. A pauses the sprite or starts the test from the beginning.
    Fixed in forthcoming 0.09.
  • Vertical counterpart to "Hill zone scroll test", using kiki.bmp that's sort of reminiscent of Sgt. Helmet Training Day by The Mojon Twins
    First off, where does this image come from?
The vertical scroll test would require size-optimizing a bunch of things to free ROM space if I want to keep it under 48K for BNROM/UNROM dual compatibility. Currently the ROM is using 47475 of 49152 bytes.


Top
 Profile  
 
 Post subject: Re: 240p test suite
PostPosted: Sun Jun 26, 2016 3:38 pm 
Offline

Joined: Sun Sep 19, 2004 11:12 pm
Posts: 19355
Location: NE Indiana, USA (NTSC)
0.09 (2016-06-26)

  • CPU clock speed no longer changes "Dendy" in main menu to "PAL" (reported by Eugene.S)
  • Manual lag: Audio on by default, and when enabled, beeps for A Button presses and flashes when reticles align (parity with SNES test 1.03)
  • Added Audio sync test: Press A to make the dot bounce and beep when it hits the floor (parity with SNES test 1.03)
  • There's another change. Blink and you'll miss it.


Attachments:
240pee-0.09.zip [175.17 KiB]
Downloaded 121 times
Top
 Profile  
 
 Post subject: Re: 240p test suite
PostPosted: Wed Jul 13, 2016 5:21 pm 
Offline

Joined: Sun Sep 19, 2004 11:12 pm
Posts: 19355
Location: NE Indiana, USA (NTSC)
Egg on face.

0.10 (2016-07-13)

  • Fixed Gray ramp, which was inadvertently broken during rearrangement to fit Audio sync test (reported by Artemio)
  • Linearity: Help mentions PAL PAR
  • Stills: Refactored check for help page to save code size
  • IRE: Treats Up as Right and Down as Left for convenience

There's about 1.5K of usable free space left in the 48K of the ROM that I'm using (UNROM banks 0, 1, and 3). In order to add the vertical scroll test, I'd need to break into the 16K that I've so far been intentionally leaving blank. This means either dropping BNROM support or adding trampolines to get in and out of bank 0. I've done trampolines before (Haunted: Halloween '85 and Action 53); I just need to get my head in the right direction.

I'd also need a new tile set. Artemio made the current vertical scroll background by arranging tiles from one of the Pocky and Rocky games in a map editor.

Image
kiki.bmp (Super NES) (256x512)


The 240p test suite for NES uses vertical mirroring. I plan to make it appear as 256x480 by using sprite 0 to trigger a switch to the other nametable. So to add this test, I'll need to remove a couple rows of tiles from the path. I also need different tiles that look good on NES and don't resemble Pocky and Rocky too closely.


Attachments:
240pee-0.10.zip [175.34 KiB]
Downloaded 105 times
Top
 Profile  
 
 Post subject: Re: 240p test suite
PostPosted: Thu Jul 14, 2016 1:03 am 
Offline
Site Admin
User avatar

Joined: Mon Sep 20, 2004 6:04 am
Posts: 3488
Location: Indianapolis
tepples wrote:
There's about 1.5K of usable free space left in the 48K of the ROM that I'm using (UNROM banks 0, 1, and 3). In order to add the vertical scroll test, I'd need to break into the 16K that I've so far been intentionally leaving blank. This means either dropping BNROM support or adding trampolines to get in and out of bank 0. I've done trampolines before (Haunted: Halloween '85 and Action 53); I just need to get my head in the right direction.


Unless you know of someone who really needs BNROM support, I'd just drop it. UNROM is like 25% of the NES library(?), and BNROM is maybe like 0.015% (one game). If someone can afford a 64kB ROM but not a 128kB one with duplicate banks for a test cart, they've probably got bigger things to worry about (yeah I know BNROM is 28-pin socket, but any newer boards are 32-pin).

Really cool test ROM!


Top
 Profile  
 
 Post subject: Re: 240p test suite
PostPosted: Thu Jul 14, 2016 4:15 am 
Offline

Joined: Sun Sep 19, 2004 11:12 pm
Posts: 19355
Location: NE Indiana, USA (NTSC)
I think the idea of BNROM is that it's one wire different from AxROM, to allow use of common Rare games (oxymoron?) as donors.


Top
 Profile  
 
 Post subject: Re: 240p test suite
PostPosted: Fri Jul 15, 2016 6:06 pm 
Offline

Joined: Sun Sep 19, 2004 11:12 pm
Posts: 19355
Location: NE Indiana, USA (NTSC)
So I drew some similar tiles and arranged them similarly to Artemio's map. Does this look any good?


Attachments:
kiki256480.png
kiki256480.png [ 4.15 KiB | Viewed 2566 times ]
Top
 Profile  
 
 Post subject: Re: 240p test suite
PostPosted: Sat Jul 16, 2016 12:07 pm 
Offline

Joined: Sun Sep 19, 2004 11:12 pm
Posts: 19355
Location: NE Indiana, USA (NTSC)
After some fairly straightforward size optimizations, I found just enough free space to add an 80% complete version of the vertical scroll test. The lanterns/TVs aren't in, but I'm not sure how critical they are.

0.11 (2016-07-16)

  • Refactored OAM upload and scrolling to top left to save code size
  • CPU clock speed: Rearranged alignment-sensitive code to save size
  • Stopwatch: Uses metasprite drawing routine from Shadow sprite
  • Hill zone scroll test: Left and Right both toggle direction
  • Added vertical scrolling test (parity with SNES test 1.03)


Attachments:
240pee-0.11.zip [180.01 KiB]
Downloaded 95 times
Top
 Profile  
 
 Post subject: Re: 240p test suite
PostPosted: Mon Jul 18, 2016 4:46 pm 
Offline
User avatar

Joined: Sun May 27, 2012 8:43 pm
Posts: 1312
tepples wrote:
So I drew some similar tiles and arranged them similarly to Artemio's map. Does this look any good?


This palette is jarring. I don't think the luminosity of the orange and green are far enough apart to deliver good contrast.

The original 240p test suite for Sega Genesis / Mega Drive prominently features borrowed artwork - almost exclusively. Including art from KiKi KaiKai is not going to introduce an actual problem.


Top
 Profile  
 
 Post subject: Re: 240p test suite
PostPosted: Mon Jul 18, 2016 5:20 pm 
Offline

Joined: Sun Sep 19, 2004 11:12 pm
Posts: 19355
Location: NE Indiana, USA (NTSC)
mikejmoffitt wrote:
tepples wrote:
So I drew some similar tiles and arranged them similarly to Artemio's map. Does this look any good?

This palette is jarring. I don't think the luminosity of the orange and green are far enough apart to deliver good contrast.

How could the palette be improved given the lack of desaturated oranges in the NES palette?

mikejmoffitt wrote:
The original 240p test suite for Sega Genesis / Mega Drive prominently features borrowed artwork - almost exclusively. Including art from KiKi KaiKai is not going to introduce an actual problem.

Again, I don't want to be the one they make an example of. This goes double if I want this to qualify for the third compo, as NESHomebrew suggested. After Square bought up Enix and Taito, it started to go full Disney on amateur derivatives, especially of a Chrono Trigger homage. It suddenly pulled the Kiki Kaikai license from the developer of Heavenly Guardian/Legend of Sayuki, and the game suffered for it.


Top
 Profile  
 
 Post subject: Re: 240p test suite
PostPosted: Mon Jul 18, 2016 7:22 pm 
Offline
User avatar

Joined: Sun Sep 19, 2004 10:59 pm
Posts: 1393
In version 0.11, getting too many "exact" hits in the manual lag test causes it to freeze with a white screen (though I can still press B to exit it).

_________________
Quietust, QMT Productions
P.S. If you don't get this note, let me know and I'll write you another.


Top
 Profile  
 
 Post subject: Re: 240p test suite
PostPosted: Mon Jul 18, 2016 8:47 pm 
Offline

Joined: Sun Sep 19, 2004 11:12 pm
Posts: 19355
Location: NE Indiana, USA (NTSC)
Quietust wrote:
In version 0.11, getting too many "exact" hits in the manual lag test causes it to freeze with a white screen (though I can still press B to exit it).

Reproduced: result screen wasn't resetting the background color since 0.09. Will be fixed next version. Thank you for the problem report.


Top
 Profile  
 
 Post subject: Re: 240p test suite
PostPosted: Fri Jul 22, 2016 2:44 pm 
Offline

Joined: Sun Sep 19, 2004 11:12 pm
Posts: 19355
Location: NE Indiana, USA (NTSC)
Note to self: retrorgb requested support for a Nintendo on a black-and-white TV. I just checked, and the only ones that might be hard to read in B&W are Stopwatch and Hill zone scroll test.


Top
 Profile  
 
 Post subject: Re: 240p test suite
PostPosted: Tue Jul 26, 2016 7:56 am 
Offline

Joined: Sun Sep 19, 2004 11:12 pm
Posts: 19355
Location: NE Indiana, USA (NTSC)
Through private messages, retrorgb and I figured out what was going on.

When a Hi-Def NES board is active, the composite output of the PPU is white for sprite pixels and black for background pixels. (This is combined with the 4-bit "slave" pixel output to form a 5-bit index into CGRAM.) The lag from composite to HDMI output is 2 ms or less, as the Hi-Def NES board's 32-line circular buffer can't hold more than 2 ms of pixels. We can exploit this to measure the whole system's lag down to the millisecond: connect the HDMI out to the TV being tested and the composite out to a dumb composite CRT SDTV, count scanlines of difference, and divide by 15.7.

I can break this into three feature requests for Stopwatch:
  • Draw both digits of "frame" with sprites instead of background tiles, so they show up in white on the composite output. The ones place of frames already shows up on the composite output as the "clock hand" at the bottom, but the tens place doesn't. I was worried about a scaler adding exactly 10 fields of lag.
  • Draw a castellated (notched) strip of sprites down the right side of the screen to allow counting scanlines by inspection.
  • Ensure that the shades of blue and red for the clock face appear distinct even in grayscale, to allow use of an NTSC NES with PAL TVs that can view a 262-line (PAL60 or PAL-M) signal.

I'll keep you posted on whether I can squeeze them in, or whether I have to go jump on a trampoline.


Top
 Profile  
 
 Post subject: Re: 240p test suite
PostPosted: Tue Jul 26, 2016 9:58 am 
Offline

Joined: Thu Oct 15, 2015 2:25 pm
Posts: 8
Here's a video demonstrating the issue. I usually prefer to use a DSLR to get a clearer picture, but this should be decent: https://youtu.be/E525KsUh_VQ


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 134 posts ]  Go to page Previous  1 ... 4, 5, 6, 7, 8, 9  Next

All times are UTC - 7 hours


Who is online

Users browsing this forum: Bing [Bot] and 3 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