• 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,091 02-20-2013, 11:41
Last Post: Mibbix
  [Release] ZombieS Project - outdated - barata 9 5,376 01-03-2013, 03:26
Last Post: barata
  [News] Operation 'Let's start on another project that we won't finish' JariZ 10 5,737 08-26-2012, 17:59
Last Post: Arteq
Rainbow Preview Project Dark Night Nekochan 7 4,229 08-07-2012, 11:43
Last Post: Arteq
  [Release] Project Nova SparkyMcSparks 29 16,229 07-03-2012, 18:01
Last Post: Snipermats
  SnD bg sounds project paok-atak 8 4,564 05-22-2012, 18:08
Last Post: JariZ
  Project Anti cheat Joan 18 9,574 05-09-2012, 09:15
Last Post: GscGunner
  Real Science House 1 1,758 03-19-2012, 15:52
Last Post: Yamato
  Iron Wolf Project SuperNovaAO 8 5,183 02-07-2012, 00:58
Last Post: kokole
Bug Preview First photoshop project!(: skata3000 8 4,671 01-20-2012, 15:26
Last Post: Ic3coldh20

Forum Jump:


Users browsing this thread: 1 Guest(s)