Schrijver
| software sprites examples
|
Grauw msx professional Berichten: 1002 | Geplaatst: 11 Februari 2005, 01:27   |
Sonic, not by much and not always. I for example couldn’t observe a difference when trying 20 I%=I%+1:IF I%<1000 GOTO 20. And it makes the source larger.
|
|
Imanok msx addict Berichten: 283 | Geplaatst: 11 Februari 2005, 09:15   |
I know that if you use arrays instead of variables, you're consuming less memory, but ... is there any signifficant difference (about memory and/or speed waste) between:
10 DEFINTA-Z : DIM D(75)
and
10 DEFINTA-Z : DIM DX(25), DY(25), DZ(25)
??
|
|
NYYRIKKI msx master Berichten: 1500 | Geplaatst: 11 Februari 2005, 09:31   |
Quote:
| Heh, I was too lazy to try and get the right formula. 
/me wonders which of the two versions is faster (after including DEFINT A-Z in mine) 
|
I first thought about something like DX(I)=-INT(SIN(I*.9)+.4): DY(I)=-INT(SIN(I*.83+2)+.4)... but the other one is the smaller one. Your version is definately faster as it does not need to calculate anything. I just wonder, how you are going to spend all that free 0.002 sec. that you don't need to wait @ initialization.
|
|
AuroraMSX
 msx master Berichten: 1227 | Geplaatst: 11 Februari 2005, 09:46   |
Quote:
| I just wonder, how you are going to spend all that free 0.002 sec. that you don't need to wait @ initialization. 
|
Pour myself a cup of coffee  |
|
|
|
|