how to make Bottom 2 lines invisible ?

Strictly for discussing ZSNES development and for submitting code. You can also join us on IRC at irc.libera.chat in #zsnes.
Please, no requests here.

Moderator: ZSNES Mods

Locked
sjyune
New Member
Posts: 5
Joined: Sat Jul 31, 2004 4:16 pm

how to make Bottom 2 lines invisible ?

Post by sjyune »

I would like to make some changes in Snes9x so that bottom 2 lines disappear just like Zsnes...i mean ...what code/change in Zsnes Source ?
i heard this is correct behaviour...
can any developer here shed light on this ?

please help .....


thanks... :wink:
Reznor007
Lurker
Posts: 118
Joined: Fri Jul 30, 2004 8:11 am
Contact:

Post by Reznor007 »

The bottom line SHOULD be visible. I have a screenshot from my real SNES showing the last line that some emus cut out.
sjyune
New Member
Posts: 5
Joined: Sat Jul 31, 2004 4:16 pm

Post by sjyune »

Indeed !!....i rechecked my Snes..Yes ..those 2 lines are visible and most of time they are used for rendering (no gabage there)
then now my question is : why Zsnes cut out those 2 lines ?
as far as i know Zsnes is only emu that hides those two lines at bottom..
byuu

Post by byuu »

A lot of emulators incorrectly cut off one of the last lines. It's mostly to avoid people complaining about garble in the 2-3% of games that don't render any data to the last line. Nobody notices on TVs since that area is clipped off anyway.
creaothceann
Seen it all
Posts: 2302
Joined: Mon Jan 03, 2005 5:04 pm
Location: Germany
Contact:

Post by creaothceann »

sjyune wrote:why Zsnes cut out those 2 lines ?
Because the SNES does not display the first line (used for loading sprite data), so the entire image is shifted up by 1.
vSNES | Delphi 10 BPLs
bsnes launcher with recent files list
Firon
Trooper
Posts: 361
Joined: Fri May 05, 2006 4:37 pm
Contact:

Post by Firon »

So that's why I always see the resolution mentioned as 256x223...
byuu

Post by byuu »

Sigh. The resolution is 256x224. 256x224.

Line 0 (the first line) is not rendered, it's used to preprocess data for the PPU.
Lines 1-224 (yes, this is 224 lines) are rendered. Most emulators cut off line 224 because it can sometimes have corrupted data on it if the developers choose to ignore it.
Lines 225 and above are for vertical blanking and nothing is rendered to them.
Firon
Trooper
Posts: 361
Joined: Fri May 05, 2006 4:37 pm
Contact:

Post by Firon »

Whoops. Thanks for clearing that up.
grinvader
ZSNES Shake Shake Prinny
Posts: 5632
Joined: Wed Jul 28, 2004 4:15 pm
Location: PAL50, dood !

Post by grinvader »

ZSNES renders 222 lines (2->223) on some ports due to internal issues that will eventually be fixed, end of discussion.
皆黙って俺について来い!!

Code: Select all

<jmr> bsnes has the most accurate wiki page but it takes forever to load (or something)
Pantheon: Gideon Zhi | CaitSith2 | Nach | kode54
pagefault
ZSNES Developer
ZSNES Developer
Posts: 812
Joined: Tue Aug 17, 2004 5:24 am
Location: In your garden

Post by pagefault »

Just an update, we now render 224 lines in all ports. So no more black lines at the bottom.
grinvader
ZSNES Shake Shake Prinny
Posts: 5632
Joined: Wed Jul 28, 2004 4:15 pm
Location: PAL50, dood !

Post by grinvader »

pagefault wrote:Just an update, we now render 224 lines in all ports. So no more black lines at the bottom.
Err... do we ? SVN-updated SDL port here still has 223 lines in GUI and 222 in game, for GL modes and soft modes as well.
皆黙って俺について来い!!

Code: Select all

<jmr> bsnes has the most accurate wiki page but it takes forever to load (or something)
Pantheon: Gideon Zhi | CaitSith2 | Nach | kode54
Locked