software sprites examples (Development MSX Fora)MSX Resource Center MSXdev 2008 - MSX1 development bonanza!           
            
English Nederlands Español Português Russian         
 Nieuws
   Voorpagina
  Nieuws archief
  Nieuws onderwerpen

 Informatie
   MSX Fora
  Artikelen
  Recensies
  Beursverslagen
  Fotoreportages
  Beurzen en meetings
  Enquêtes
  Links
  Zoek

 Software
   Downloads
  Webshop

 MRC
   Wie we zijn
  Kom bij ons team
  Doneren
  Policies
  Contact met het MRC
  Link naar Ons
  Statistieken

 Zoek
 
  

  

 Login
 

Gebruikersnaam

Wachtwoord




Ben je nog niet lid? Klik hier en word MSX vriend!


 Statistieken
 

Er zijn 120 gasten en 0 MSX vrienden online

Je bent een anonieme bezoeker.
 

MSX Fora


MSX Fora

Development - software sprites examples

Ga naar pagina ( Vorige pagina 1 | 2 )
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
 
Ga naar pagina ( Vorige pagina 1 | 2 )
 







(c) 1994 - 2008 Stichting MSX Resource Center. MSX is een trademark van MSX Licensing Corporation.