(For all the tests, I added the variable behind each NEXT.)
It can be found in the TOSEC package, in the firmware section.
Thanks, I think I found it
anyway, it is an interesting post. Even more if we could compare our basics to others
Here we could try to find some nice comparison with the TI99/4A
http://atariage.com/forums/topic/215138-bitmap-mode/page-6
yes, I saw it but after reading some posts I'm surprised about the huge difference among emulators what it takes me to think that Basic is a good mean to show how well an emulator is.
I imagine it would make a big difference if you’d use an original cartridge, or loaded it into RAM (xbasic1.bin / xbasic2.bin). The latter would be much faster.
BiFi's test was with Basic-kun loaded in RAM. So, we should test the same scenario on the emulators to see if it also gets to 22s.
OK, done, openMSX gives 23.13 seconds
And exactly the same program as I used on the real machine gives me 22.92 seconds! So, pretty good But just a bit too slow (99.09% of actual speed).
Result in openMSX on R800 (enabled by booting without floppy) without using MSX-BASIC'n: 940.43 seconds.
On my real GT: 929.62 seconds.
So, here openMSX's R800 is also a bit too slow (98.85% of actual speed).
@manual: Isn't that a bit strange. I would say that if you set throttle to 1000%, is should be 10 times faster compared to the original speed. How is that dependant on the settings of the emulator (I can imagine speed of the PC, but wouldn't any normal PC be doing this with ease)?
Because in many cases it won't get to 1000%, but it depends on how many frames may be skipped and which video rendering options are used. On a REALLY fast PC you *will* get it and it could be timed in real time.
Hmm, I just tested it on openMSX with SDLGL-PP, all kinds of effects, max_frameskip 0 and speed 1000 and indeed, it just gets to 1000% Perhaps emulation is nowadays faster than I thought
It also means it is worth to use full-throttle (no throttling at all) to get a result as quick as possible.
BiFi's test was with Basic-kun loaded in RAM. So, we should test the same scenario on the emulators to see if it also gets to 22s.
This is surely the reason and BiFi used probably the DRAM mode.
I used Basic-Kun on a Flash ROM. I think the default mode is R800 ROM.
And exactly the same program as I used on the real machine gives me 22.92 seconds! So, pretty good But just a bit too slow (99.09% of actual speed).
In what mode?
All my tests were in R800 DRAM mode.
This version fits in screen 2 (and screen 5)
100 SX=100:SY=56:SZ=64:CX=240:CY=192 110 DIM RR(256) 120 FOR I=0 TO CX:RR(I)=CY:NEXT I 130 COLOR 15,1,1:SCREEN 2 140 CX=CX*0.5:CY=CY*0.46875:FX=SX/64:FZ=SZ/64 150 XF=4.71238905/SX 160 FOR ZI=64 TO -64 STEP -1 170 ZT=ZI*FX:ZS=ZT*ZT 180 XL=INT(SQR(SX*SX-ZS)+0.5) 190 ZX=ZI*FZ+CX:ZY=CY+ZI*FZ 200 FOR XI=0 TO XL 210 XT=SQR(XI*XI+ZS)*XF 220 YY=(SIN(XT)+SIN(XT*3)*0.4)*SY 230 X1=XI+ZX:Y1=ZY-YY 240 IF RR(X1)>Y1 THEN RR(X1)=Y1:PSET(X1,Y1),15 250 X1=ZX-XI 260 IF RR(X1)>Y1 THEN RR(X1)=Y1: PSET(X1,Y1),15 270 NEXT XI:NEXT ZI 280 GOTO 280