0 Members and 5 Guests are viewing this topic.
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.
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.
Quote from: meishe91 on December 22, 2010, 10:05:32 pmWell 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
Quote from: Hot_Dog on December 22, 2010, 10:26:52 pmQuote from: meishe91 on December 22, 2010, 10:05:32 pmWell 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 upI 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.
How long does it take to render?