ItsMods

Full Version: My science project
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
tl;dr my code doesn't work?!
(09-04-2011, 23:55)SuperNovaAO Wrote: [ -> ]tl;dr my code doesn't work?!

Your code *probably* does work but it isn't faster.
Sorry to bump this, but it just had me a intrigued. Are you saying that the 'strTok' function was run 10,000 times and finished in less than 1 millisecond? Are you using a NASA computer? Tongue Because strings generally take more time to process than integers due to their flexibility.
(09-21-2011, 12:28)Phl3x_ Wrote: [ -> ]Sorry to bump this, but it just had me a intrigued. Are you saying that the 'strTok' function was run 10,000 times and finished in less than 1 millisecond? Are you using a NASA computer? Tongue Because strings generally take more time to process than integers due to their flexibility.

No, in 1 server frame, 50ms. And I got a 6 core @ 3,2ghz
Probably because there is a preprocessor in cod which transforms the code inside the gsc first.
If these were tested in another, more common language, Nova's way would probably be a bit faster. However in all languages, it will be less accurate because many floats cannot be represented exactly, and by performing calculations on them, it would skew the results. Also, calculations with floats is a fairly processor intensive task, so strings would be the best option for this.
lol, I know that this is old but seriously @AZUMIKKEL? You didn't know what strTok did? O__o
(09-23-2011, 07:56)master131 Wrote: [ -> ]lol, I know that this is old but seriously @AZUMIKKEL? You didn't know what strTok did? O__o

@AZUMIKKEL is a noob modder Big Grin
Pages: 1 2