Omnimaga

Calculator Community => TI Calculators => TI-BASIC => Topic started by: CDI on February 10, 2006, 11:23:00 am

Title: [TI-BASIC] Can you make this faster?
Post by: CDI on February 10, 2006, 11:23:00 am
c1-->
CODE
ec1DelVar L1
DelVar L2
DelVar [A]
{8,16->dim([A]
[A]->[C]
[C]->
Fill(1,
1->A
1->B
->Y
ClrHome
Output(1,1,"LOADING -
Title: [TI-BASIC] Can you make this faster?
Post by: Radical Pi on February 10, 2006, 11:51:00 am
A few simple optimizations, not tested.
I don't know if it'll be faster though.c1-->
CODE
ec1DelVar L1DelVar L2
DelVar [A]{8,16->dim([A]
[A]->[C]
Ans->
Fill(1,
1->A
Ans->B
->Y
ClrHome
Output(1,1,"LOADING -
Title: [TI-BASIC] Can you make this faster?
Post by: MathStuf on February 10, 2006, 02:09:00 pm
Here's a bit more on what Radical Pi did:
c1-->
CODE
ec1DelVar L1DelVar L2DelVar [A]DelVar Y{8,16->dim([A]
[A]->[C]
Ans->
Fill(1,
1->A
Ans->B
ClrHome
Output(1,1,"LOADING -
Title: [TI-BASIC] Can you make this faster?
Post by: DJ Omnimaga on February 10, 2006, 02:45:00 pm
moved to help and support
Title: [TI-BASIC] Can you make this faster?
Post by: CDI on February 11, 2006, 03:25:00 am
:Dbiggrin.gif you do know that it was typed out like that for ease of reading? all the optimizations radical pi made are in the code, and a few of the ones MathStuf made too. Oh and the 100/20 was for in the game I replace the 20 with E which can be anywhere from 1 to 120 so :Dbiggrin.gif
Title: [TI-BASIC] Can you make this faster?
Post by: kalan_vod on February 17, 2006, 07:03:00 am
Yeah I customized this to work with my sizes of BD, and I am very fortunet to have Fred make this routine for me :Dbiggrin.gif.  
Title: [TI-BASIC] Can you make this faster?
Post by: CDI on February 18, 2006, 07:54:00 am
:Dbiggrin.gif I make the mose useless code for my games and it turns out to be useful for others :)smile.gif