software sprites examples (Development Foros MSX)MSX Resource Center            
                       
English Nederlands Espa�ol Portugu�s Russian                  
 Noticias
   Página principal
  Almacén de noticias
  Temas de noticias

 Recursos
   Foros MSX
  Artículos
  Analisis
  Informe de ferias/RUs
  Álbum de fotos
  Ferias y encuentros
  Encuestas
  Enlaces
  Buscar

 Software
   Descargas
  Tienda Online

 MRC
   Quiénes somos
  Únete a nuestro equipo
  Donar
  Políticas
  Contacta con nosotros
  Enlázanos
  Estadísticas

 Buscar
 
  

  

 Login
 

Login

Contraseña




¿Aún no tienes una cuenta? ¡Conviértete en miembro del MSX Resource Center! ¡Únete a nosotros!.


 Estadísticas
 

Hay 41 invitados y 2 miembros en línea

Eres un usuario anónimo.
 

Foros MSX


Foros MSX

Development - software sprites examples

Ir a la página ( Página anterior 1 | 2 )
Autor

software sprites examples

Grauw
msx professional
Mensajes: 1006
Publicado: Febrero 11 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
Mensajes: 284
Publicado: Febrero 11 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
Mensajes: 1528
Publicado: Febrero 11 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
Mensajes: 1262
Publicado: Febrero 11 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
 
Ir a la página ( Página anterior 1 | 2 )
 







(c) 1994 - 2008 Fundación MSX Resource Center. MSX es una marca registrada de MSX Licensing Corporation