Author Topic: Correlation Progress  (Read 68272 times)

0 Members and 1 Guest are viewing this topic.

Offline TIfanx1999

  • ಠ_ಠ ( ͡° ͜ʖ ͡°)
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 6173
  • Rating: +191/-9
    • View Profile
Re: Correlation Progress
« Reply #60 on: January 17, 2011, 08:12:04 am »
I made a replacement for the function sub( to help with long strings.  Just replace sub( with abs(.

For a small string, the speed difference between abs( and sub( is almost unnoticeable.  However, if you have the following code for a 2000 char string:

For(A,1,1000
sub(Str0,1000,1
End

1 Minute, 25 seconds

With Correlation:

For(A,1,1000
abs(Str0,1000,1
End

15 seconds
Hmm, I wonder at about what string length the difference between sub and your custom command becomes significant. Nonetheless, very cool. =)

Offline calcdude84se

  • Needs Motivation
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2272
  • Rating: +78/-13
  • Wondering where their free time went...
    • View Profile
Re: Correlation Progress
« Reply #61 on: January 19, 2011, 10:53:32 pm »
Assuming uniformly-sized tokens is a lot faster, it seems ;D
Great progress, Keep up the good work! :D
"People think computers will keep them from making mistakes. They're wrong. With computers you make mistakes faster."
-Adam Osborne
Spoiler For "PartesOS links":
I'll put it online when it does something.

Offline willrandship

  • Omnimagus of the Multi-Base.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2953
  • Rating: +98/-13
  • Insert sugar to begin programming subroutine.
    • View Profile
Re: Correlation Progress
« Reply #62 on: January 19, 2011, 11:04:46 pm »
Quick thought: is it equally fast in Basic to display Sin and S? if so, since Sin uses S, i, n and ( as 4 text sprites you could optimize a tilemapping program that has 4 sprites, one after another, really often. :)

Offline Hot_Dog

  • Project Author
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3006
  • Rating: +445/-10
    • View Profile
Re: Correlation Progress
« Reply #63 on: January 19, 2011, 11:07:32 pm »
Quick thought: is it equally fast in Basic to display Sin and S? if so, since Sin uses S, i, n and ( as 4 text sprites you could optimize a tilemapping program that has 4 sprites, one after another, really often. :)

I'm pretty sure that S is faster than Sin(.  Whatever the case, using the token to display four token sets is easier said than done, especially since Correlation does not allow individual lower case letters

Offline willrandship

  • Omnimagus of the Multi-Base.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2953
  • Rating: +98/-13
  • Insert sugar to begin programming subroutine.
    • View Profile
Re: Correlation Progress
« Reply #64 on: January 19, 2011, 11:11:32 pm »
oh, I thought the OS used S i and n to create sin, and made them act like one token even though it rendered 3 text sprites.

Offline Hot_Dog

  • Project Author
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3006
  • Rating: +445/-10
    • View Profile
Re: Correlation Progress
« Reply #65 on: January 19, 2011, 11:12:31 pm »
oh, I thought the OS used S i and n to create sin, and made them act like one token even though it rendered 3 text sprites.

Yeah, but I really don't want to mess around with tokens

Offline willrandship

  • Omnimagus of the Multi-Base.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2953
  • Rating: +98/-13
  • Insert sugar to begin programming subroutine.
    • View Profile
Re: Correlation Progress
« Reply #66 on: January 19, 2011, 11:23:20 pm »
So, using correlation if you changed the letters, Sin would still look like Sin?

Offline Hot_Dog

  • Project Author
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3006
  • Rating: +445/-10
    • View Profile
Re: Correlation Progress
« Reply #67 on: January 19, 2011, 11:25:18 pm »
I'm afraid I don't know what you mean.  Can you rephrase?

Offline Hot_Dog

  • Project Author
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3006
  • Rating: +445/-10
    • View Profile
Re: Correlation Progress
« Reply #68 on: January 22, 2011, 05:28:50 am »
I finally have different sprite types (including masked) working, as well as optimizations and copying the screen only when all text is drawn.  Look in "Starcraft:Zeratul -- Eye Candy" for a demonstration screen shot

Offline Hot_Dog

  • Project Author
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3006
  • Rating: +445/-10
    • View Profile
Re: Correlation Progress
« Reply #69 on: January 23, 2011, 04:47:41 am »
Here's a demonstration of Word Wrap Mode.  Once I fix some bugs (including getting "Ms" and "Ws" to display correctly) I'll apply this to a Starcraft: Zeratul Cutscene.

Offline program4

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 158
  • Rating: +15/-0
    • View Profile
Re: Correlation Progress
« Reply #70 on: January 23, 2011, 07:58:55 pm »
I'm just wondering, but is the "on-calc font editor" for Correlation posted earlier in this topic supposed to do anything, or is it just supposed to rickroll?

souvik1997

  • Guest
Re: Correlation Progress
« Reply #71 on: January 23, 2011, 08:00:55 pm »
Could you turn off the run indicator when you are scrolling the text?

Offline Hot_Dog

  • Project Author
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3006
  • Rating: +445/-10
    • View Profile
Re: Correlation Progress
« Reply #72 on: January 23, 2011, 09:34:50 pm »
I'm just wondering, but is the "on-calc font editor" for Correlation posted earlier in this topic supposed to do anything, or is it just supposed to rickroll?

Sorry, bro, it's just a rickroll

Offline jnesselr

  • King Graphmastur
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2270
  • Rating: +81/-20
  • TAO == epic
    • View Profile
Re: Correlation Progress
« Reply #73 on: January 23, 2011, 09:45:39 pm »
I'm just wondering, but is the "on-calc font editor" for Correlation posted earlier in this topic supposed to do anything, or is it just supposed to rickroll?

Sorry, bro, it's just a rickroll
Which obviously shows I haven't been able to test it.  Oh, and it also makes you lose the game.

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 Progress
« Reply #74 on: January 23, 2011, 11:10:58 pm »
I'm just wondering, but is the "on-calc font editor" for Correlation posted earlier in this topic supposed to do anything, or is it just supposed to rickroll?

Sorry, bro, it's just a rickroll

Darn, do you actually have one working? If not I made something really, really close (in Axe) in prep for Ximp ;)

EDIT: And I think when I finish Ximp, I'll add an option to export to a Correlation-compatible font, if that's okay with you?
« Last Edit: January 23, 2011, 11:20:10 pm by Deep Thought »