Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Release My science project
#11
tl;dr my code doesn't work?!
Reply

#12
(09-04-2011, 23:55)SuperNovaAO Wrote: tl;dr my code doesn't work?!

Your code *probably* does work but it isn't faster.
[Image: MaEIQ.png]
Reply

#13
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.
Reply

#14
(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
[Image: MaEIQ.png]
Reply

#15
Probably because there is a preprocessor in cod which transforms the code inside the gsc first.
Reply

#16
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.
Reply

#17
lol, I know that this is old but seriously @AZUMIKKEL? You didn't know what strTok did? O__o
[Image: 30xhrep.png]

A casual conversation between barata and I about Nukem.
Reply

#18
(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
[Image: MaEIQ.png]
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  New Project Mibbix 11 6,679 02-20-2013, 11:41
Last Post: Mibbix
  [Release] ZombieS Project - outdated - barata 9 5,922 01-03-2013, 03:26
Last Post: barata
  [News] Operation 'Let's start on another project that we won't finish' JariZ 10 6,361 08-26-2012, 17:59
Last Post: Arteq
Rainbow Preview Project Dark Night Nekochan 7 4,653 08-07-2012, 11:43
Last Post: Arteq
  [Release] Project Nova SparkyMcSparks 29 18,063 07-03-2012, 18:01
Last Post: Snipermats
  SnD bg sounds project paok-atak 8 4,946 05-22-2012, 18:08
Last Post: JariZ
  Project Anti cheat Joan 18 10,481 05-09-2012, 09:15
Last Post: GscGunner
  Real Science House 1 1,909 03-19-2012, 15:52
Last Post: Yamato
  Iron Wolf Project SuperNovaAO 8 5,684 02-07-2012, 00:58
Last Post: kokole
Bug Preview First photoshop project!(: skata3000 8 5,133 01-20-2012, 15:26
Last Post: Ic3coldh20

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.