MD-NICCC - a 3D Mega Drive experience by TiTAN

Announce (tech) demos or games releases

Moderator: Mask of Destiny

Sik
Very interested
Posts: 939
Joined: Thu Apr 10, 2008 3:03 pm
Contact:

Re: MD-NICCC - a 3D Mega Drive experience by TiTAN

Post by Sik » Wed Apr 24, 2019 9:56 pm

Miquel wrote:
Wed Apr 24, 2019 9:30 pm
Yes, you do. MD has more VDP bandwidth than the SNES homonym, nearly twice if my memory serves me well. They even go to only 50hz (PAL) to maximize it.
That's what really counts on this demo.
Um, wrong, even assuming H40, the bandwidth is only somewhat larger (around 7KB vs around 6KB, if memory serves well), and in H32 they're practically identical. If the Mega Drive had been equipped with 128KB of VRAM you'd be right since in that mode it does indeed double bandwidth :​P Alas…

But yeah, even that considered, PAL is a completely different beast than NTSC, it has over twice as much vblank time and transfer bandwidth during vblank is proportionately larger (at the expense of lower framerate).
Miquel wrote:
Wed Apr 24, 2019 9:30 pm
In this demo, after some educated guesses, I believe border tiles are pre-rendered and solid tiles use the background color to avoid transfers. Some times you can see in the distance when the overall color changes.
Nah, the original demo already changed all 16 colors at a whim (and a lot of the glitchy polygons came from there too, though the format containing non-convex polygons didn't help matters).

That said, there are pre-built solid tiles for all 16 colors (rather than just background color), which is indeed what's being used to fill in the large solid areas.
Sik is pronounced as "seek", not as "sick".

Miquel
Very interested
Posts: 514
Joined: Sat Jul 30, 2016 12:33 am

Re: MD-NICCC - a 3D Mega Drive experience by TiTAN

Post by Miquel » Wed Apr 24, 2019 10:32 pm

You have made me see it again. I settle for:
- A rough approximation with solid tiles in one plane
- Pre-rendered sprites for the borders

Again, it’s all about transfers.
HELP. Spanish TVs are brain washing people to be hostile to me.

TmEE co.(TM)
Very interested
Posts: 2440
Joined: Tue Dec 05, 2006 1:37 pm
Location: Estonia, Rapla City
Contact:

Re: MD-NICCC - a 3D Mega Drive experience by TiTAN

Post by TmEE co.(TM) » Wed Apr 24, 2019 10:40 pm

MD and SNES VRAM bandwidths are very similar in H256, though in H320 MD will pull ahead a bit and on DMA bandwidth alone both should be fairly similar, within 10% probably, be them both in 50 or in 60Hz. But here we see more than twice speed difference.
Mida sa loed ? Nagunii aru ei saa ;)
http://www.tmeeco.eu
Files of all broken links and images of mine are found here : http://www.tmeeco.eu/FileDen

Miquel
Very interested
Posts: 514
Joined: Sat Jul 30, 2016 12:33 am

Re: MD-NICCC - a 3D Mega Drive experience by TiTAN

Post by Miquel » Thu Apr 25, 2019 2:26 am

Sik wrote:
Wed Apr 24, 2019 9:56 pm
Um, wrong, even assuming H40, the bandwidth is only somewhat larger (around 7KB vs around 6KB, if memory serves well), and in H32 they're practically identical. If the Mega Drive had been equipped with 128KB of VRAM you'd be right since in that mode it does indeed double bandwidth :​P Alas…

But yeah, even that considered, PAL is a completely different beast than NTSC, it has over twice as much vblank time and transfer bandwidth during vblank is proportionately larger (at the expense of lower framerate).
Then VDP reads bytes during DMA? instead of words. I remember somewhere on the manual saying it reads words... (?)

The point is SNES has a 8bit data bus, while MD has one of 16bit; should be twice as fast for similar memory speed.
HELP. Spanish TVs are brain washing people to be hostile to me.

Sik
Very interested
Posts: 939
Joined: Thu Apr 10, 2008 3:03 pm
Contact:

Re: MD-NICCC - a 3D Mega Drive experience by TiTAN

Post by Sik » Thu Apr 25, 2019 5:07 am

The VRAM equipped on the Mega Drive is 8-bit though, so VRAM writes take twice as long as CRAM and VSRAM writes do. That's precisely why 128KB VRAM would have been awesome: what that mode does is set the VRAM bus to 16-bit instead, which in turn doubles the bandwidth (not just the available memory). But they decided to not equip enough memory for that on the Mega Drive (probably to cut down costs), so we're stuck with the slower mode.

Unless somebody wants to make a tech demo that only works on a Tera Drive ;P (or modded Mega Drives)
Sik is pronounced as "seek", not as "sick".

Stef
Very interested
Posts: 3131
Joined: Thu Nov 30, 2006 9:46 pm
Location: France - Sevres
Contact:

Re: MD-NICCC - a 3D Mega Drive experience by TiTAN

Post by Stef » Thu Apr 25, 2019 11:11 am

Mask of Destiny wrote:
Wed Apr 24, 2019 4:21 pm
Pretty sure Sik is talking about the SNES port of the ST-NICC demo which was also released at Revision this year.
Oh i completely missed it... i really wonder why they needed the SFX here, probably doing the polygon rendering from the SFX.
I don't know how much they are close to the original vertex format or if they are closer to a video / image data streamer.

bioloid
Very interested
Posts: 169
Joined: Fri May 18, 2012 8:22 pm

Re: MD-NICCC - a 3D Mega Drive experience by TiTAN

Post by bioloid » Thu May 02, 2019 5:49 pm


Miquel
Very interested
Posts: 514
Joined: Sat Jul 30, 2016 12:33 am

Re: MD-NICCC - a 3D Mega Drive experience by TiTAN

Post by Miquel » Fri May 10, 2019 1:13 pm

Sik wrote:
Wed Apr 24, 2019 9:56 pm
Um, wrong, even assuming H40, the bandwidth is only somewhat larger (around 7KB vs around 6KB, if memory serves well), and in H32 they're practically identical. If the Mega Drive had been equipped with 128KB of VRAM you'd be right since in that mode it does indeed double bandwidth :​P Alas…
SNES runs at 2 speeds, 2.68 by default and in some directed cases at 3.58 mhz; that is MD is 30% faster and 6% respectively at accessing memory.

It seems they did a mapping mess when trying to do snes compatible with nes, later they drop compatibility but not the mess.
HELP. Spanish TVs are brain washing people to be hostile to me.

Stef
Very interested
Posts: 3131
Joined: Thu Nov 30, 2006 9:46 pm
Location: France - Sevres
Contact:

Re: MD-NICCC - a 3D Mega Drive experience by TiTAN

Post by Stef » Fri May 10, 2019 2:11 pm

No, the 7.67 Mhz 68000 is actually *slower* than the 2.68 Mhz 65C816 at accessing memory... it's why the 65C816 can work at 2 speeds, fast memory (ROM) were too expensive in 1990 so they voluntary limited it to 2.68 Mhz to reduce cost on RAM (which is fixed to work at 2.68 Mhz) and to maintain acceptable cost on ROM too (while leaving possibility to increase ROM speed later when chips would become cheapers).
The VDP DMA does access MD memory at almost the same speed than the SNES one though (but we have 16 bit memory on MD while we have 8 bit memory on SNES).

Chilly Willy
Very interested
Posts: 2984
Joined: Fri Aug 17, 2007 9:33 pm

Re: MD-NICCC - a 3D Mega Drive experience by TiTAN

Post by Chilly Willy » Fri May 10, 2019 2:27 pm

You have to remember that the 68000 takes multiple clock cycles to access memory (generally 4 clocks), while 65xx variants take 1 cycle. However, the 65xx cannot transfer memory on every clock, so that's moot. Also remember that the SNES uses a BYTE bus for data while the MD uses a WORD bus, so the MD does indeed transfer data from the cart much faster than the SNES, even in fast mode.

Miquel
Very interested
Posts: 514
Joined: Sat Jul 30, 2016 12:33 am

Re: MD-NICCC - a 3D Mega Drive experience by TiTAN

Post by Miquel » Fri May 10, 2019 3:35 pm

I’m sorry but how the hell can a memory be accessed in only 1 cycle?!? You need two cycles at minimum, one to put the address to the address bus, and then another to retrieve data from data bus.

For example a NOP takes 2 cycles on a 65816, that sounds correct if there is prefetch.

Something is wrong here, either misinformation or cycles need to be doubled.
HELP. Spanish TVs are brain washing people to be hostile to me.

TmEE co.(TM)
Very interested
Posts: 2440
Joined: Tue Dec 05, 2006 1:37 pm
Location: Estonia, Rapla City
Contact:

Re: MD-NICCC - a 3D Mega Drive experience by TiTAN

Post by TmEE co.(TM) » Fri May 10, 2019 3:40 pm

Mida sa loed ? Nagunii aru ei saa ;)
http://www.tmeeco.eu
Files of all broken links and images of mine are found here : http://www.tmeeco.eu/FileDen

Miquel
Very interested
Posts: 514
Joined: Sat Jul 30, 2016 12:33 am

Re: MD-NICCC - a 3D Mega Drive experience by TiTAN

Post by Miquel » Fri May 10, 2019 4:24 pm

I'm sorry Chilly Willy, you were saying exactly what I think, I just read "read memory of 1 cycle" and go berserk.

The data is ready at the end of the first cycle, but can't be used until next cycle; so it's two cycles from my point of view.
HELP. Spanish TVs are brain washing people to be hostile to me.

TmEE co.(TM)
Very interested
Posts: 2440
Joined: Tue Dec 05, 2006 1:37 pm
Location: Estonia, Rapla City
Contact:

Re: MD-NICCC - a 3D Mega Drive experience by TiTAN

Post by TmEE co.(TM) » Fri May 10, 2019 7:46 pm

One edge puts address on the bus, other edge collects the data. One clock cycle.
Mida sa loed ? Nagunii aru ei saa ;)
http://www.tmeeco.eu
Files of all broken links and images of mine are found here : http://www.tmeeco.eu/FileDen

Stef
Very interested
Posts: 3131
Joined: Thu Nov 30, 2006 9:46 pm
Location: France - Sevres
Contact:

Re: MD-NICCC - a 3D Mega Drive experience by TiTAN

Post by Stef » Fri May 10, 2019 7:53 pm

The 6502 uses 2 phases cycle, so first half cycle is used to set address while second half is use to read/write value.

Post Reply