Pokemon Purple

A forum where you can announce your awesome project(s).

Moderator: MaxCoderz Staff

User avatar
Delnar_Ersike
Sir Posts-A-Lot
Posts: 153
Joined: Mon 22 Jan, 2007 3:05 am
Location: UNATCO Headquarters

Post by Delnar_Ersike »

I remember running your Pokedex program on my 83+ Silver, yet it only had a minor speed increase in drawing. :puzzled:
trevmeister66
New Member
Posts: 13
Joined: Thu 25 Jan, 2007 1:55 am
Location: <--- over there --->

Post by trevmeister66 »

Ah, but think how it will run on my 84+ SE
User avatar
Delnar_Ersike
Sir Posts-A-Lot
Posts: 153
Joined: Mon 22 Jan, 2007 3:05 am
Location: UNATCO Headquarters

Post by Delnar_Ersike »

trevmeister66 wrote:Ah, but think how it will run on my 84+ SE
FYI, the 83+ Silver and the 84+ Silver both have 15 Mhz processor speeds, so there is no difference.
tifreak8x
Sir Posts-A-Lot
Posts: 297
Joined: Mon 11 Jul, 2005 4:42 pm
Location: Indiana
Contact:

Post by tifreak8x »

Even though the 83+SE, 84+, and 84+SE have the same speed processor, I find my 83+SE seems to be faster than my 84+. I do not yet have an 84+SE to test with, so I am unsure about it. I think keeping track of the clock slows the processor down slightly...

I tested this by drawing Bulbasaur on both calculators at the same time, the 83+SE beat the 84+ by 5 or 6 seconds.
http://tifreakware.net - Connecting TI communities
necro
Calc King
Posts: 1619
Joined: Sat 26 Mar, 2005 2:45 am
Location: your shadow

Post by necro »

its to bad you aren't making any of this asm, something like ion's large sprite routine would work well for such a use (assuming you copy and paste the code from it to the asm prog).
User avatar
thegamefreak0134
Extreme Poster
Posts: 455
Joined: Mon 23 Jan, 2006 10:09 pm
Location: In front of a Computer, coding
Contact:

Post by thegamefreak0134 »

True, but he does want to make this a BASIC only version. I think he can pull it off too. His will be BASIC, mine will be Asm. We are striving (and helping each other out in the process) to make each the best it can possibly be for the language in question. Thus, I will certainly (and obviously) be using nothing but asm, and he will be using nothing but BASIC, up to and including Basic Helpers written in asm like zsprite and Omnicalc.

I do still want to see that routine by the way. Oh, and I do want to confirm that the 84+ is indeed slower in BASIC operation than the 83+, I did a bunch of counting tests on it. Not quite sure what the speed difference is, but I do know that the new one is slower.

-gamefreak
I'm not mad, just a little crazy.

DarkNova - a little side project I run.
DarkAuron
Maxcoderz Staff
Posts: 1349
Joined: Sat 18 Dec, 2004 6:53 pm

Post by DarkAuron »

tifreak8x wrote:Even though the 83+SE, 84+, and 84+SE have the same speed processor, I find my 83+SE seems to be faster than my 84+. I do not yet have an 84+SE to test with, so I am unsure about it. I think keeping track of the clock slows the processor down slightly...

I tested this by drawing Bulbasaur on both calculators at the same time, the 83+SE beat the 84+ by 5 or 6 seconds.
If you want to find the true difference, figure out the time difference it takes to update the screen. I know for a fact that the ti-84+SE OS updates the screen slower, which becomes rather annoying when scrolling through 8kb of BASIC code. Anytime you draw a line, a pixel, or characters on the homescreen in BASIC the screen gets updated, and that's overall is going to be much slower on the 84+ series. Try it.
[Gridwars Score] - E: 1860037 M: 716641 H: 261194
tifreak8x
Sir Posts-A-Lot
Posts: 297
Joined: Mon 11 Jul, 2005 4:42 pm
Location: Indiana
Contact:

Post by tifreak8x »

thegamefreak0134 wrote:True, but he does want to make this a BASIC only version. I think he can pull it off too. His will be BASIC, mine will be Asm. We are striving (and helping each other out in the process) to make each the best it can possibly be for the language in question. Thus, I will certainly (and obviously) be using nothing but asm, and he will be using nothing but BASIC, up to and including Basic Helpers written in asm like zsprite and Omnicalc.

I do still want to see that routine by the way. Oh, and I do want to confirm that the 84+ is indeed slower in BASIC operation than the 83+, I did a bunch of counting tests on it. Not quite sure what the speed difference is, but I do know that the new one is slower.

-gamefreak
Yes, thank you for reminding me. And the only asm program I am now using is Resource, for the archiving capabilities.

I did some checking, the version that you saw was the older version. I am going to resend the programs with the new stuff, so you can see how much faster the new system is.

But here is the code for the newer system until I can get the new screenshot:
:I->C:J->U
length(Str4->N
For(/theta/,1,N
inString("123456789ABCDEF",sub(Str4,/theta/,1
If 7<Ans
Pxl-On(U,C
If 3<8fpart(Ans/8
Pxl-On(U,C+1
If 1<4fpart(Ans/4
Pxl-On(U,C+2
If fpart(Ans/2
Pxl-On(U,C+3
C+4->C
U+(C=(I+32))->U
If C=(I+32):I->C
If sub(Str4,/theta/,1)="G":Then
U+1->U
I->C
End:End
http://tifreakware.net - Connecting TI communities
User avatar
thegamefreak0134
Extreme Poster
Posts: 455
Joined: Mon 23 Jan, 2006 10:09 pm
Location: In front of a Computer, coding
Contact:

Post by thegamefreak0134 »

:I->C:J->U
length(Str4->N
For(/theta/,1,N
inString("123456789ABCDEF",sub(Str4,/theta/,1
If 7<Ans
Pxl-On(U,C
If 3<8fpart(Ans/8
Pxl-On(U,C+1
If 1<4fpart(Ans/4
Pxl-On(U,C+2
If fpart(Ans/2
Pxl-On(U,C+3
C+4->C
U+(C=(I+32->U
If C=(I+32):I->C
If sub(Str4,/theta/,1)="G
Then

U+1->U
I->C
End:End
This is some severely optimized stuff already, I'm quite impressesd. I just noticed a couple of little nit-picky things here and there, bolded. Of course, you used some weird nesting on the first line and I don't have a real cal to test in front of me, but the second one (moving the Then after the "G) saves you a byte and a fraction of a second I believe.)

-thegamefreak

*EDIT* Just noticed, the line in-between them can become
If C=(I+32:I->C
to save another byte.
I'm not mad, just a little crazy.

DarkNova - a little side project I run.
User avatar
Saibot84
New Member
Posts: 38
Joined: Fri 17 Feb, 2006 9:14 pm
Location: Jersey City, NJ

Post by Saibot84 »

Image Although this would probably exponentially increase the amount of work you'd have to do, what about changing that to use some sort of scripting language such that each "sprite" is saved as a series of inputs for either Line(, Pxl-On(, or Pxl-Off... In my tests, I once tried to create a Zelda game in Basic (using real sprites instead of ASCII) and the sprites could be displayed at a decent speed because I used a GIANT subroutine program that read something to the effect of: If A=1:Then:Line(...):Line(...):Line(...):...:Pxl-Off(...):End:If A=2:Then:Line(...):Line(...):Line(...):...:Pxl-Off(...):End... But since this took an IMMENSE amount of space, maybe an interpreter that parses a list as a series of Line(, Pxl-On(, or Pxl-Off commands might be faster. Image
____________________
Reaktix Software (formally XDG Kat-Productions)
-Michael Image Image
MyBlog ChatWithMe
User avatar
kalan_vod
Calc King
Posts: 2932
Joined: Sat 18 Dec, 2004 6:46 am
Contact:

Post by kalan_vod »

Saibot84 wrote:Image Although this would probably exponentially increase the amount of work you'd have to do, what about changing that to use some sort of scripting language such that each "sprite" is saved as a series of inputs for either Line(, Pxl-On(, or Pxl-Off... In my tests, I once tried to create a Zelda game in Basic (using real sprites instead of ASCII) and the sprites could be displayed at a decent speed because I used a GIANT subroutine program that read something to the effect of: If A=1:Then:Line(...):Line(...):Line(...):...:Pxl-Off(...):End:If A=2:Then:Line(...):Line(...):Line(...):...:Pxl-Off(...):End... But since this took an IMMENSE amount of space, maybe an interpreter that parses a list as a series of Line(, Pxl-On(, or Pxl-Off commands might be faster. Image
____________________
Reaktix Software (formally XDG Kat-Productions)
-Michael Image Image
MyBlog ChatWithMe
Faster yes, much more space needed though.
tifreak8x
Sir Posts-A-Lot
Posts: 297
Joined: Mon 11 Jul, 2005 4:42 pm
Location: Indiana
Contact:

Post by tifreak8x »

thegamefreak0134 wrote:
:I->C:J->U
length(Str4->N
For(/theta/,1,N
inString("123456789ABCDEF",sub(Str4,/theta/,1
If 7<Ans
Pxl-On(U,C
If 3<8fpart(Ans/8
Pxl-On(U,C+1
If 1<4fpart(Ans/4
Pxl-On(U,C+2
If fpart(Ans/2
Pxl-On(U,C+3
C+4->C
U+(C=(I+32->U
If C=(I+32):I->C
If sub(Str4,/theta/,1)="G
Then

U+1->U
I->C
End:End
This is some severely optimized stuff already, I'm quite impressesd. I just noticed a couple of little nit-picky things here and there, bolded. Of course, you used some weird nesting on the first line and I don't have a real cal to test in front of me, but the second one (moving the Then after the "G) saves you a byte and a fraction of a second I believe.)

-thegamefreak

*EDIT* Just noticed, the line in-between them can become
If C=(I+32:I->C
to save another byte.
While normally that is the case, I was getting some really wierd errors upon execution, when I put the ) back in there, it worked just fine, so for 3 bytes, I am not going to complain. :)

Saibot84:

As Kalan said, that would take massive amounts of memory, and as it stands the sprite data already takes 25,960 bytes, though that was optimized from the 40,432 bytes they used to take up. o.O
http://tifreakware.net - Connecting TI communities
necro
Calc King
Posts: 1619
Joined: Sat 26 Mar, 2005 2:45 am
Location: your shadow

Post by necro »

cool, it is to bad this doesn't use asm though (even if just for things like that)
tifreak8x
Sir Posts-A-Lot
Posts: 297
Joined: Mon 11 Jul, 2005 4:42 pm
Location: Indiana
Contact:

Post by tifreak8x »

Well, see, We would expect ASM to be able to handle this, since it was built on a variation of Z80 asm. But it makes it more impressive (imo) to be made in BASIC, and be fully playable.
http://tifreakware.net - Connecting TI communities
User avatar
kalan_vod
Calc King
Posts: 2932
Joined: Sat 18 Dec, 2004 6:46 am
Contact:

Post by kalan_vod »

tifreak8x wrote:Well, see, We would expect ASM to be able to handle this, since it was built on a variation of Z80 asm. But it makes it more impressive (imo) to be made in BASIC, and be fully playable.
More so, anyone who completes a massive project as such. Does not really matter what language, as this has been attempted countless times. I would be amazed just to see a complete port.
Post Reply