Author Topic: Project Feedback - Imagination Quest  (Read 40370 times)

0 Members and 1 Guest are viewing this topic.

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Project Feedback - Imagination Quest
« Reply #135 on: September 14, 2010, 07:25:08 pm »
Note that i would recommend Lists, as in experience i have found it to be faster than Strings.  However if size is what you are optimizing strings are better.
« Last Edit: September 14, 2010, 07:26:32 pm by Builderboy »

Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: Project Feedback - Imagination Quest
« Reply #136 on: September 14, 2010, 07:26:53 pm »
Wait, lists are slower than lists? O.o Did you mean that strings are slower than lists?

Nevermind, you fixed it :P
« Last Edit: September 14, 2010, 07:27:18 pm by meishe91 »
Spoiler For Spoiler:



For the 51st time, that is not my card! (Magic Joke)

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Project Feedback - Imagination Quest
« Reply #137 on: September 14, 2010, 07:29:31 pm »
Haha yeah didnt you hear?  If you use Lists, they are by nature slower than themselves, which means they are also faster than themselves, which means you can get infinitely fast or slow speed at the same time :D

* Builderboy hits self with a pointy thing *

Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: Project Feedback - Imagination Quest
« Reply #138 on: September 14, 2010, 07:36:17 pm »
For once TI-BASIC is faster than assembly then ;)
Spoiler For Spoiler:



For the 51st time, that is not my card! (Magic Joke)

Offline MRide

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 711
  • Rating: +14/-0
  • You can't see this.
    • View Profile
Re: Project Feedback - Imagination Quest
« Reply #139 on: September 14, 2010, 08:16:24 pm »
Code: (List Compression) [Select]
{1020902,5020507,1070907→L1
For(A,1,dim(Ans
Line(iPart(E2fPart(L1(A)/E8)),-iPart(E2fPart(L1(A)/E6)),iPart(E2fPart(L1(A)/E4)),-iPart(E2fPart(L1(A)/E2
End

Note:
Each "E" in that code is the scientific notation E.

Code: (String Compression) [Select]
"010209020502050701070907→Str1
For(A,1,length(Str1)-7,8
Line(expr(sub(Str1,A,2)),-expr(sub(Str1,A+2,2)),expr(sub(Str1,A+4,2)),-expr(sub(Str1,A+6,2
End

There might be optimizations that can be made, I just threw those together real fast to demonstrate the methods.

Note:
The list method is 108 bytes while the sting is 114 bytes. BUT, the string is 35 bytes while the sting is 39 bytes.
Thanks, that makes sense to me (I think).
Also, I think you lost the game, Builderboy. (and if you didn't, you did now. :P)

Oh, and look at this!
« Last Edit: September 14, 2010, 08:24:41 pm by MRide »

Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: Project Feedback - Imagination Quest
« Reply #140 on: September 14, 2010, 08:22:41 pm »
Code: (List Compression) [Select]
{1020902,5020507,1070907→L1
For(A,1,dim(Ans
Line(iPart(E2fPart(L1(A)/E8)),-iPart(E2fPart(L1(A)/E6)),iPart(E2fPart(L1(A)/E4)),-iPart(E2fPart(L1(A)/E2
End

Note:
Each "E" in that code is the scientific notation E.

Code: (String Compression) [Select]
"010209020502050701070907→Str1
For(A,1,length(Str1)-7,8
Line(expr(sub(Str1,A,2)),-expr(sub(Str1,A+2,2)),expr(sub(Str1,A+4,2)),-expr(sub(Str1,A+6,2
End

There might be optimizations that can be made, I just threw those together real fast to demonstrate the methods.

Note:
The list method is 108 bytes while the sting is 114 bytes. BUT, the string is 35 bytes while the sting is 39 bytes.
Thanks, that makes sense to me (I think).
Also, I think you lost the game, Builderboy. (and if you didn't, you did now. :P)

No problem. Like I said you can put two more coordinates per element if you want. You just need to do a little tweaking to the program.
Spoiler For Spoiler:



For the 51st time, that is not my card! (Magic Joke)

Offline ztrumpet

  • The Rarely Active One
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5712
  • Rating: +364/-4
  • If you see this, send me a PM. Just for fun.
    • View Profile
Re: Project Feedback - Imagination Quest
« Reply #141 on: September 15, 2010, 05:26:41 pm »
Haha yeah didnt you hear?  If you use Lists, they are by nature slower than themselves, which means they are also faster than themselves, which means you can get infinitely fast or slow speed at the same time :D

* Builderboy hits self with a pointy thing *
lol :P

So, MRide, did you decide on lists or strings?  Either way, I think it'll be fine. :)

Offline MRide

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 711
  • Rating: +14/-0
  • You can't see this.
    • View Profile
Re: Project Feedback - Imagination Quest
« Reply #142 on: September 15, 2010, 09:38:38 pm »
Well, if lists are infinitely fast.....j/k :P
I'm going with strings.

Well, just tried it.  Definitely slower, so I won't add the random delay, but the effect is kind of cool looking.
Now that this is done, I can resume working on the story.  (And damn, text takes up a lot of mem)
« Last Edit: September 15, 2010, 10:11:51 pm by MRide »

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Project Feedback - Imagination Quest
« Reply #143 on: September 16, 2010, 04:32:06 am »
Do not use lowercase letters if possible. Each take 2 bytes while uppercase takes 1 each. And yeah text is large :/

Offline MRide

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 711
  • Rating: +14/-0
  • You can't see this.
    • View Profile
Re: Project Feedback - Imagination Quest
« Reply #144 on: September 16, 2010, 07:50:43 am »
I'm using the graph screen, so lower case won't be necessary.

Offline MRide

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 711
  • Rating: +14/-0
  • You can't see this.
    • View Profile
Re: Project Feedback - Imagination Quest
« Reply #145 on: September 17, 2010, 12:21:06 am »
Wow.  I tested to see how much RAM my game is taking up.  I halted execution midprogram, and I had 5k RAM left.  That means at some point in the execution, I have 5.2k bytes left in RAM! And I haven't even completed the storyline program or written the battle engine yet.  I'm probably going to have to make this into an app with BasicBuilder, if I want it to be playable.

Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: Project Feedback - Imagination Quest
« Reply #146 on: September 17, 2010, 12:31:26 am »
BasicBuilder on does one page apps I believe, so that won't do a whole lot in terms of helping with memory. You might have to use XCOPY or something.
Spoiler For Spoiler:



For the 51st time, that is not my card! (Magic Joke)

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Project Feedback - Imagination Quest
« Reply #147 on: September 17, 2010, 12:50:52 am »
I would recommend against BasicBuilder since you can only have 1 page apps and it's a major PITA to add pics if you use any, or archived programs. XCOPY seems like a better bet for a project like this. See Illusiat 13, for example.

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Project Feedback - Imagination Quest
« Reply #148 on: September 17, 2010, 01:57:33 am »
I generally do not recommend BasicBuilder.  I find that it slows down programs with too many subprograms, and it gives you no extra Ram options either.  I much favor Xcopy, since it gives you much greater memory options and is really fast

Offline MRide

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 711
  • Rating: +14/-0
  • You can't see this.
    • View Profile
Re: Project Feedback - Imagination Quest
« Reply #149 on: September 17, 2010, 08:09:57 am »
Well, okay then. :P  I'll look at xcopy.