Author Topic: Correlation Screenshots  (Read 47393 times)

0 Members and 2 Guests are viewing this topic.

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: Correlation Screenshots
« Reply #60 on: December 13, 2010, 10:25:04 pm »
Ah ok then. In BASIC, what happens is that Sub(Str1,2000,128) is about half a second slower than Sub(Str1,0,128).

Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: Correlation Screenshots
« Reply #61 on: December 22, 2010, 09:10:22 pm »
Ya, but that's just because it starts at the beginning of the string, searches for the start, then displays it, right? So longer the string the more time it takes...well I guess further into a string you want to start at I guess I should say.
Spoiler For Spoiler:



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

Offline Hot_Dog

  • Project Author
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3006
  • Rating: +445/-10
    • View Profile
Re: Correlation Screenshots
« Reply #62 on: December 22, 2010, 09:28:57 pm »
Ya, but that's just because it starts at the beginning of the string, searches for the start, then displays it, right? So longer the string the more time it takes...well I guess further into a string you want to start at I guess I should say.

Knowing ASM, I'm pretty sure the size of a string makes no difference--TI would have to really screw up for string size to matter.  But it's always a known fact that that more computations the calculator has to make, the longer things take.  You'll notice the difference when you graph Y = 1 and Y = sin(cos(tan(X^100X)))

Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: Correlation Screenshots
« Reply #63 on: December 22, 2010, 10:05:32 pm »
Well I didn't mean the size of the string is what effects the speed. It's where in the string you're starting from. Like DJ said, if you have a string with 2005 tokens in it you will notice a speed difference between sub(Str1,1,5 and sub(Str1,2001,5.  So the further inside the string you're trying to start from the longer it will take to display it or find it.
Spoiler For Spoiler:



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

Offline Hot_Dog

  • Project Author
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3006
  • Rating: +445/-10
    • View Profile
Re: Correlation Screenshots
« Reply #64 on: December 22, 2010, 10:26:52 pm »
Well I didn't mean the size of the string is what effects the speed. It's where in the string you're starting from. Like DJ said, if you have a string with 2005 tokens in it you will notice a speed difference between sub(Str1,1,5 and sub(Str1,2001,5.  So the further inside the string you're trying to start from the longer it will take to display it or find it.

Oh, I didn't notice that.  Okay, TI screwed up

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: Correlation Screenshots
« Reply #65 on: December 23, 2010, 12:39:37 am »
Well I didn't mean the size of the string is what effects the speed. It's where in the string you're starting from. Like DJ said, if you have a string with 2005 tokens in it you will notice a speed difference between sub(Str1,1,5 and sub(Str1,2001,5.  So the further inside the string you're trying to start from the longer it will take to display it or find it.

Oh, I didn't notice that.  Okay, TI screwed up
I definitively think they did. Further inside the string it's really really slow when the string is long. When people make scrolling RPGs, they add a For loop that artificially slows down the game when scrolling at the top of the map, to equalize the overall speed.

It's the same thing as with the Goto command.
« Last Edit: December 23, 2010, 12:40:37 am by DJ Omnimaga »

Offline Hot_Dog

  • Project Author
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3006
  • Rating: +445/-10
    • View Profile
Re: Correlation Screenshots
« Reply #66 on: December 23, 2010, 12:47:04 am »
Well I didn't mean the size of the string is what effects the speed. It's where in the string you're starting from. Like DJ said, if you have a string with 2005 tokens in it you will notice a speed difference between sub(Str1,1,5 and sub(Str1,2001,5.  So the further inside the string you're trying to start from the longer it will take to display it or find it.

Oh, I didn't notice that.  Okay, TI screwed up
I definitively think they did. Further inside the string it's really really slow when the string is long. When people make scrolling RPGs, they add a For loop that artificially slows down the game when scrolling at the top of the map, to equalize the overall speed.

As long as you avoid using Sub(, Correlation handles the rest to make a fast program.  You just have to follow the manual and use the right code--not hard, just different techniques.
« Last Edit: December 23, 2010, 12:47:28 am by Hot_Dog »

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Correlation Screenshots
« Reply #67 on: December 23, 2010, 01:10:49 am »
Well I didn't mean the size of the string is what effects the speed. It's where in the string you're starting from. Like DJ said, if you have a string with 2005 tokens in it you will notice a speed difference between sub(Str1,1,5 and sub(Str1,2001,5.  So the further inside the string you're trying to start from the longer it will take to display it or find it.

Oh, I didn't notice that.  Okay, TI screwed up

Well actually the OS is forced to look from the very beginning of the string due to the presence of 2 byte tokens :/ It knows the *byte* length of the string, but it doesn't know the token length without starting from the beginning
« Last Edit: December 23, 2010, 01:11:15 am by Builderboy »

Offline Hot_Dog

  • Project Author
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3006
  • Rating: +445/-10
    • View Profile
Re: Correlation Screenshots
« Reply #68 on: December 26, 2010, 01:08:59 am »
Now that the manual is done, and now that the font compilers are ready, back to the coding.

Here's a tribute to Sam Heald.  No source code I'm afraid, but you have my word that this was done completely in Correlation.

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: Correlation Screenshots
« Reply #69 on: December 26, 2010, 02:24:28 am »
Awesome! That'll sure be an easy way to draw tilemaps from strings. :)

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Correlation Screenshots
« Reply #70 on: December 26, 2010, 01:32:00 pm »
Awesome, looking even more useful! I wonder if anyone'll port an actual Mario game to BASIC with this O.O




Offline jnesselr

  • King Graphmastur
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2270
  • Rating: +81/-20
  • TAO == epic
    • View Profile
Re: Correlation Screenshots
« Reply #71 on: December 26, 2010, 04:50:40 pm »
I looked at the screen and almost thought it was a mario thread, and almost passed it by.  Wow, that is absolutely amazing.  And this is FASTER than TI's routine? how?

Offline Hot_Dog

  • Project Author
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3006
  • Rating: +445/-10
    • View Profile
Re: Correlation Screenshots
« Reply #72 on: December 27, 2010, 12:16:30 am »
I finished the code for wrapping text that falls off-screen, so here's a screenshot for Metroid.  This time, I've also attached the font and the code that I used.  The first character of the font is assigned to the character "A" as it will be for many screenshots to come.

real(METODFNT
ln(1,1,"ABBBBBBBBBBBMMMMBBCDMMCDMABABBBBEEFMMMMMMMMHHHHHEEGMMMMMMMMHHHHHIIHHHMMMMMMHHHHHIIJMMMMMMMMHHHHHIIJMMKMMMKMHHHHHIIJMAHHHHHMHHHHHIIJMMMMMMMMLMMMMIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
Pause

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: Correlation Screenshots
« Reply #73 on: December 27, 2010, 04:16:14 pm »
WOAH! This is even better than i thought! How long does it take to render? The best part of this I think is how we can use tilemaps with tiles other than 8x8 and 16x16, but even better: any size!

Offline Hot_Dog

  • Project Author
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3006
  • Rating: +445/-10
    • View Profile
Re: Correlation Screenshots
« Reply #74 on: December 27, 2010, 06:44:36 pm »
How long does it take to render?

You know, I'm not sure.  I plan to time it pretty soon, probably after I finish negative coordinates.  For sure, though, it still runs faster that TI routines
« Last Edit: December 27, 2010, 06:45:08 pm by Hot_Dog »