|
Post by mirkosoft on Apr 15, 2015 7:37:28 GMT
Hi!
I found this topic and go testing 'cause I own SuperCPU128 - I tested only Basic program written at topic start. Results are affected like Robert (our Hydrophilic) wrote - by Basic 7.0 and its IRQs and all features operancy - Basic 2.0 is more, more easily. So here's table of my results (machine: C128DCR PAL, SCPU128 w/16MB RAM): 128 mode without SCPU: VIC slow 84 VDC slow 86 VDC fast 43 128 mode with SCPU at 1MHz: VIC slow 84 VDC slow 85 VDC fast 44 128 mode with SCPU at 20MHz: VIC slow 4 VDC slow 5 VDC fast 5 64 mode without SCPU: slow 74 fast 36 64 mode with SCPU at 1MHz: slow 73 fast 69 64 mode with SCPU at 20MHz: slow 3 fast 3 (64 mode slow is standard, fast is done by POKE 53296,253 - simple like in 128 mode, but VIC is turned on, yes I could turn it off - VIC can't serve screen at 2MHz) Look at results - in all SCPU in speed is best at 20MHz and at 1MHz makes computer bit slower.
BTW: Robert sent me long time ago diskimage with Basic 7.80 and Mandelbrot graph - his C128 it writes in ~1/2 day, my C128 with SCPU at 20MHz in ~30 minutes - 1/2 hour...
Miro
|
|
|
Post by hydrophilic on Apr 16, 2015 6:03:54 GMT
Thank your for all your technical info... I would like to compile a table, or 'comparison chart' to publish on my website (free for everyone). But what unit is your measurement... for example, you say 64 mode (SCPU @ 1MHz) = 73 (slow) or 69 (fast). Let's just talk about 'slow' okay? So is that seconds (73s), or JIFFYs (73s/60 = 1.22s) or milliseconds (73s/1000 = 0.073) or microseconds (73s/1000000 = 0.000073s) or something else? Most interesting result is C64+SCPU in 'slow' mode (value 73) is almost the same as C64+SCPU in 'fast' mode (value 69)... Anyway, your statistics seem very accurate... for example, standard C128 has 84~86 with slow speed but 43 with fast speed! P.S. Thanks for remembering Mandelbrot with BASIC 7.80!! Yes, it is very, very slow with stock (1 or 2 MHz) CPU... glad it works *reasonably fast* (1/2 hour) with Super-CPU... (most people today can NOT wait 30 minutes... even with SCPU )
|
|
|
Post by donno128 on Apr 17, 2015 16:04:51 GMT
Counting jiffies via TI, he used the op's program.
|
|
|
Post by hydrophilic on Apr 18, 2015 10:36:40 GMT
Ahh... Jiffies = 1/60 second... that is what I thought, but wanted to get an answer before I wrote a web page!
|
|
|
Post by donno128 on Apr 21, 2015 20:31:37 GMT
Just to see what would happen I used the x[up arrow]2 instead of multiplying by x*x... much slower if just squaring. If we go to 3rd or 4th power we get more equal speed, then above that the power function is faster than just multiplying using x*x(*x*x ad infinitum). There are some odd differences depending on what number we are raising to a power too. Which raises a question: are some functions and calculations faster on different CBM 8bits? I think the power function has some initial overhead that slows it down with simpler raising of powers of small integers.
|
|
|
Post by hydrophilic on Apr 23, 2015 8:52:45 GMT
Agreed... X^2 is much slower than X*X... I think (but can not prove) that X^Q is faster than Q iterations of X*X*X*X... at least when Q is 3 or more... Ahh... program optimization... as relevant today (with GHZ-speed 64+bit processors) as it was back in the day (1MHz 8-bit processor). Don't you love life??! Many things change, but some things remain eternal ? <3
|
|
|
Post by viceuser on Mar 20, 2016 7:45:31 GMT
Hello Hydro, I am new here and have only used a 128 in the vice emulator, but I can assure the z80 is running at an effective clock rate of 1 MHz (at least with CP/M 3) because I used to have a CP/M machine in the early 80's (a used Altair 8800 no less ) that had a 2 MHz z80 in it and everything I've tried on the c128 vice emulator runs about half speed. According the manual from Commodore, the c128 is supposed to have a 4 MHz z80 but runs at an effective 2 MHz because of sharing memory with the graphics chip. My way around it, is to set the 'Maximum Speed' (under Options) to 200% if I'm running CP/M on it.
|
|
|
Post by hydrophilic on Mar 31, 2016 2:04:44 GMT
Welcome viceuser! Yes, older versions of VICE run the C128 Z80 at only 1MHz, so your suggestion of Maximum Speed 200% is good for those emulators. However, now (as of VICE v2.4), the Z80 runs at correct speed of 2MHz. This is thanks to tokra who sent example program to VICE team, and they fixed the problem for all of us! DISCLAIMER: I am using Windows 64-bit build of VICE... maybe old/slow behavior still exists in other ports of VICE v2.4?
|
|
|
Post by C128Man on Apr 6, 2016 7:28:01 GMT
I'm using a Linux 64-bit version of VICE V2.4. But how can I be sure that the Z80 si running at the good speed?
|
|
|
Post by hydrophilic on Apr 9, 2016 7:59:51 GMT
Easy way to test is run tokra 's CP/M game "Tron" (you can download it here). With old (buggy/slow) emulation, it takes about 15 seconds after you select "start game" until you can actually play (move BIKE with keyboard). With new (correct) emulation, it take only about 7 or 8 seconds after you select "start game" until screen is cleared and you can steer your "bike" in the game... Of course there are other ways to test, but I like playing tokra's game!
|
|