TIIDO'S SEGANE MEGA BENCHMARK !!!

Ask anything your want about Megadrive/Genesis programming.

Moderator: BigEvilCorporation

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

TIIDO'S SEGANE MEGA BENCHMARK !!!

Post by TmEE co.(TM) » Wed Jun 27, 2007 11:27 am

This is a REAL benchmark for MD/Genny. It tests most of the 68K instructions in almost all possible ways. All benchmark code is run 63356 times (so it takes several minutes to complete) and while doing it, HBLs are counted up. The less HBL it takes, the better the performance. Next version (If there will be any) will use z80 and YM2612 for timing, to get exact same results on PAL and NTSC machines.

http://www.hot.ee/tmeeco/DWNLOADS/SEGANE.RAR

SEGANE means CRAZY in Estonian :wink:

My MD2 results:

PAL: 1268775, 10MHz OC: 935261
NTSC: 1571456, 10MHz OC: 1147458

Lower score means better performance !!!
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

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

Post by TmEE co.(TM) » Wed Jun 27, 2007 7:57 pm

I updated the benchmark, now it uses Z80 and YM2612 timers so PAL and NTSC systems give same results. Enjoy :wink:

My MD2 being benchmarked
Image
the benchmark channel
Image
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

evildragon
Very interested
Posts: 326
Joined: Mon Mar 12, 2007 1:53 am
Contact:

Post by evildragon » Thu Jun 28, 2007 1:54 am

Can you try and compile it for Sega CD? I just need a .bin file that is compatible with the MoD Sega Loader..

If i'm not mistaken, it's just a start address change. Maybe MoD can help you with that. (i still can't port code for some reason)

Mask of Destiny
Very interested
Posts: 616
Joined: Thu Nov 30, 2006 6:30 am

Post by Mask of Destiny » Thu Jun 28, 2007 2:28 pm

For a small program like this you usually need to do the following:

Change the start address to either $200000 or $FF0000
Remove ROM header and TMSS check
Hook V-INT (if present) using a BIOS call
Adjust DMA commands if DMA-ing from Word RAM ($200000) to deal with a small hardware bug.

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

Post by TmEE co.(TM) » Fri Jun 29, 2007 8:32 am

Luckily no ints are used, same for DMA. What happens if TMSS check isn't removed ?
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

Mask of Destiny
Very interested
Posts: 616
Joined: Thu Nov 30, 2006 6:30 am

Post by Mask of Destiny » Fri Jun 29, 2007 3:50 pm

To be honest, I don't remember. You might end up locking the VDP though and even if it has no negative effects it's not needed for Sega CD programs.

8bitwizard
Very interested
Posts: 159
Joined: Sat Feb 24, 2007 11:35 pm
Location: San Antonio, TX

Post by 8bitwizard » Fri Jun 29, 2007 11:46 pm

As long as the TMSS code checks the hardware version first it should have no negative effect.

evildragon
Very interested
Posts: 326
Joined: Mon Mar 12, 2007 1:53 am
Contact:

Post by evildragon » Sat Jun 30, 2007 3:26 am

8bitwizard wrote:As long as the TMSS code checks the hardware version first it should have no negative effect.
Sega CD is already running, thus the system has already booted.

If I remember correctly, if TMSS code is used, the result, atleast on my Genesis (which has no TMSS), was a screen filled with "@"... Sometimes I had nothing though...

But the thing is, the Sega CD already initialized the hardware, so the TMSS code would be bad...

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

Post by TmEE co.(TM) » Sat Jun 30, 2007 8:38 am

I guess it doesn't do anything, I'm checking if there is TMSS. Too bad that SEGA didn't change the hardware version of later models, all later models have 1 as version.
Now I'm going to check what happens if you write SEGA more than once...

Is there anyone who is actually running this program ?
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

evildragon
Very interested
Posts: 326
Joined: Mon Mar 12, 2007 1:53 am
Contact:

Post by evildragon » Sat Jun 30, 2007 4:41 pm

since I have no way of running it from a cartridge, I can't run it, until it's compiled for a Sega CD .bin...

Post Reply