Live data from Hacker News

How the SNES Graphics System Works

fabiensanglard.net

21–30 of 30 posts

Re: How the SNES Graphics System Works

#21

Nand 2 Tetris (which gets posted on HN a lot, rightly) will give you a fundamental understanding of a lot of these low-level concepts https://www.nand2tetris.org/ A good exercise for the junior systems engineer, or someone who wants to fundamentally understand computers better than the REPL, is to build their own emulator. There is likely a wealth of tutorials out there, but if there is not yet a canonical book on ho…

I always upvote mentions of Nand2Tetris, this course helped me understand how computers REALLY work. I'm in the middle of writing a Typescript NES emulator. Even with the help of the excellent Mesen emulator, it's a challenging task! It amazes me how people could first write these emulators that worked so well in the 90s with such few resources.

Re: How the SNES Graphics System Works

#22
post #11

Earlier quoted context omitted.

As other commentors have pointed out, Japan uses NTSC. PAL is mostly a European thing. As far as the SNES is concerned, PAL consoles simply letterbox the video and run the game 16.6% slower. Occasionally the game speed is modified to account for the decreased framerate. Super Metroid's engine was sped up so that gameplay was faster frame-by-frame and approximately as fast in wall clock time, but this introduced a num…

> As far as the SNES is concerned, PAL consoles simply letterbox the video and run the game 16.6% slower. Oh. That should make uncompensated PAL games easier, right? 17% more time to time e.g. jumps in Mario is alot.

It's not alot. But it is a lot.

/pedantic

Re: How the SNES Graphics System Works

#23
post #11
post #5

Here is an interesting tidbit: the Japanese version of the SNES was called Super Famicom. There was a physical notch that prevented Japanese cartridges from being used in the North American SNES. But for people who knew, it was actually possible to just cut off the notch in the North American SNES, and then you could use Japanese cartridges. My cousin gave me a Japanese Star Fox cartridge back in the days and I could…

As other commentors have pointed out, Japan uses NTSC. PAL is mostly a European thing. As far as the SNES is concerned, PAL consoles simply letterbox the video and run the game 16.6% slower. Occasionally the game speed is modified to account for the decreased framerate. Super Metroid's engine was sped up so that gameplay was faster frame-by-frame and approximately as fast in wall clock time, but this introduced a num…

There's a few games on SNES of which the official PAL release draws an extra row of tiles on top/bottom, Super Mario World is one of these IIRC. Same goes for Sega Mega Drive / Genesis, and IIRC NES too.

It's not quite enough to fill the screen vertically on many PAL TVs (and especially not monitors which in general have less or no overscan at all), but even the PlayStation's and Saturn's (and PlayStation 2's!) PAL modes still have this problem, the framebuffer is just not big enough vertically.

Also the pixel aspect ratio is still distorted, because the 2D gfx assets haven't been redrawn. On later consoles, some (but not all) 3D titles do account for this, sometimes even the 2D assets (HUDs, menus, etc.) are drawn with a bit of vertical stretching, especially on PS2 where bilinear filtering is available.

Even on PS2 some games still have wrong timing in the official PAL release. Final Fantasy X comes to mind... music speed is correct, everything else runs slow (picture is vertically squished as well, Square just didn't care about doing proper PAL versions until later in the PS2 era).

This (and earlier and in general just better title availability) is why some people living in PAL countries always preferred to bypass the region locks (or just import NTSC hardware) and import NTSC releases.

I'm not sure if there are any console games by an European developer where the PAL version is actually the original or intended experience and better, but on old home computers (C64, Amiga, etc.) there definitely are.

Re: How the SNES Graphics System Works

#24
post #8
post #5

Here is an interesting tidbit: the Japanese version of the SNES was called Super Famicom. There was a physical notch that prevented Japanese cartridges from being used in the North American SNES. But for people who knew, it was actually possible to just cut off the notch in the North American SNES, and then you could use Japanese cartridges. My cousin gave me a Japanese Star Fox cartridge back in the days and I could…

Europe runs PAL, here it was popular to hunt TV's that could run NTSC because of the higher framerate. This leads to less flicker. All TV's that can run NTSC can also run PAL so you can switch between the 50/60 Hz as you need on computers. Can't remember how it was with consoles, once I got a computer I never really touched a console again :-)

A lot of TVs sold in European countries since at least the late 1980s / early 1990s could sync to 60Hz just fine, so no need to import TVs or hunt very special ones, just the console hardware if modding it wasn't possible or you didn't want to do it for some reason.

Even many of the earlier sets can be made to sync to 60Hz by adjusting vertical hold. Sometimes this control was even available without opening the TV set. Vertical size of the picture may become an issue then, though... (can often be adjusted easily as well but needs opening the set, and then you can't properly watch PAL TV anymore)

If using composite video or s-video (Y/C), then NTSC colour encoding could be a problem until some years later, but RGB inputs (via SCART / Péritel) were also very common on European TVs and that bypasses colour encoding / decoding completely (and also gives the best picture quality in general).

(well looks like I wasn't going to be a SINGLE post anon after all...)

Re: How the SNES Graphics System Works

#25
post #11

Earlier quoted context omitted.

As other commentors have pointed out, Japan uses NTSC. PAL is mostly a European thing. As far as the SNES is concerned, PAL consoles simply letterbox the video and run the game 16.6% slower. Occasionally the game speed is modified to account for the decreased framerate. Super Metroid's engine was sped up so that gameplay was faster frame-by-frame and approximately as fast in wall clock time, but this introduced a num…

There's a few games on SNES of which the official PAL release draws an extra row of tiles on top/bottom, Super Mario World is one of these IIRC. Same goes for Sega Mega Drive / Genesis, and IIRC NES too. It's not quite enough to fill the screen vertically on many PAL TVs (and especially not monitors which in general have less or no overscan at all), but even the PlayStation's and Saturn's (and PlayStation 2's!) PAL m…

Wipeout on the Playstation - by defunct developer Psygnosis in Liverpool, England - is well known for having good PAL versions.

Re: How the SNES Graphics System Works

#26
post #11

Earlier quoted context omitted.

As other commentors have pointed out, Japan uses NTSC. PAL is mostly a European thing. As far as the SNES is concerned, PAL consoles simply letterbox the video and run the game 16.6% slower. Occasionally the game speed is modified to account for the decreased framerate. Super Metroid's engine was sped up so that gameplay was faster frame-by-frame and approximately as fast in wall clock time, but this introduced a num…

> As far as the SNES is concerned, PAL consoles simply letterbox the video and run the game 16.6% slower. Oh. That should make uncompensated PAL games easier, right? 17% more time to time e.g. jumps in Mario is alot.

For NES Tetris, playing on PAL is basically considered easy mode. Some of the top players have been doing it to train for difficult feats.

Re: How the SNES Graphics System Works

#27
post #11

Earlier quoted context omitted.

As other commentors have pointed out, Japan uses NTSC. PAL is mostly a European thing. As far as the SNES is concerned, PAL consoles simply letterbox the video and run the game 16.6% slower. Occasionally the game speed is modified to account for the decreased framerate. Super Metroid's engine was sped up so that gameplay was faster frame-by-frame and approximately as fast in wall clock time, but this introduced a num…

> As far as the SNES is concerned, PAL consoles simply letterbox the video and run the game 16.6% slower. Oh. That should make uncompensated PAL games easier, right? 17% more time to time e.g. jumps in Mario is alot.

Yeah, but if you're timing a speedrun using a real world clock, then the PAL version may actually be harder because it runs slower.

I wouldn't be surprised if there are games out there with a visible in game timer which has been adjusted for PAL while the rest of the game is still slow as well...

edit: Oh yeah, I also just recalled that the PAL version of the PlayStation port of Doom was PAL fixed in a funny way:

The game timer still ticks at the same rate as in the NTSC version (so it's slightly too slow now in PAL), but the player's movement speed has been increased, so you can sometimes make jumps which just aren't possible on NTSC or the original PC version.

Durations for frames (states) of monsters and the player's weapons which are counted in game timer ticks have been adjusted inconsistently as well, which results in at least the shotgun being more powerful since it's faster relative to everything else in the gameworld.

I don't remember whether projectile speeds were adjusted. Monster projectiles now being slightly faster (relatively) would tip the scale a bit the other way.

So even a supposedly PAL fixed game be easier than the NTSC original, or it can just be different as well.

Re: How the SNES Graphics System Works

#28
post #5

Here is an interesting tidbit: the Japanese version of the SNES was called Super Famicom. There was a physical notch that prevented Japanese cartridges from being used in the North American SNES. But for people who knew, it was actually possible to just cut off the notch in the North American SNES, and then you could use Japanese cartridges. My cousin gave me a Japanese Star Fox cartridge back in the days and I could…

The only difference to handle PAL and NTSC is the master clock. The two consoles shipped with two different oscillator. I actually detailed how this works in last month article[1]. And as other have pointed out, Japan and USA both use NTSC. [1] https://fabiensanglard.net/snes_video/#:~:text=totally%20use...

It's possible to add a pretty simple 50Hz/60Hz switch to any SNES or SFC console (just as on Mega Drive / Genesis, Saturn, Jaguar, and others), see eg. https://gamesx.com/importmod/snes5060.htm

I don't know if the timings will be EXACTLY* the same as on an actual console from the "other" region but should be pretty close, close enough to not really notice a difference in gameplay and make all the games I know about from the "other" region work correctly, assuming you bypass the lockout chip as well and aren't trying to play a game which detects a disabled lockout chip like the SA-1 games.

Often these 50/60Hz switch mods either don't switch the colour encoding at all (you get PAL60 which actually works on many, even older, European TVs and monitors, or NTSC50) or breaks it completely, but use RGB interconnects and that won't be a problem at all. IIRC a PAL SNES modified this way outputs PAL60, but it might have been just totally broken composite / s-video as well (which will show up as monochrome on any display).

(on Dreamcast, PS2, and later model PS1s hardware from all regions can actually do both colour encodings as well.)

On NES you really need to swap a couple of chips and a crystal to convert a PAL console to NTSC or vice versa, some other older systems as well.

*) I know that at least on the 1st PlayStation, a PAL console switched via software to 60Hz doesn't have exactly the same timings as a real NTSC console, also vice versa, but the difference is so minor that at least I never even noticed, just read about it years later on the Internet, IIRC it was either the shmups.system11.org forum or some Mednafen developer comments on their website where I saw this

(apologies if this is already touched upon on your site, haven't read those pages fully yet...)

Re: How the SNES Graphics System Works

#29
post #17

Earlier quoted context omitted.

> As far as the SNES is concerned, PAL consoles simply letterbox the video and run the game 16.6% slower. Oh. That should make uncompensated PAL games easier, right? 17% more time to time e.g. jumps in Mario is alot.

That's right. Sonic the Hedgehog on the Mega Drive is the goto example, where even the music runs slower.

Ye I got that one. Had this blue bar around the screen too. Even as a kid I noticed there was something off with the music and speed compared to Sonic 2 and which seemed to be a better port.
Post reply on HN