Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Deserves its own topic
#26
MysticHLE Wrote:Wow...really?! Switch statements?! That many conditions as well?! I really wonder what kind of beginner programmers they hire to code these things. These developers should know better. -_-!

The computer isn't going to like this in terms of performance. And there isn't much that the assembler will be able to do either...way too many potential branch prediction misses (on the architecture level). >.>

I sure hope this function isn't invoked each time we attack...and that it's only calculated once. -_-

Kinda explains why MS runs so slow and requires so much resources...if they really have these bad programming habits. >.>



It definitely doesn't look like a function in the STL library, so it must be a user-defined function - which shouldn't be a surprise to you - since that's what programming is essentially about. STL is mainly only used for the containers/ADTs.

Precisely, their attack calculations and such are worst. They should simply pre-calculate it and cache on a location for future attack, and update when the user cast a buff/debuff.
You'll see hundreds of if and else such as :

Code:
if (skillid / 1000 == 100) {
   if (skillid == 1311111) {
   } else if .. and so on
}

THIS repeats for every single job! lol

AND their randomizer does this 7~15 times per attack to an array :
Code:
CRand32_Rand() // Generate an unsigned int32

even without using it fully.
Reply


Messages In This Thread
Deserves its own topic - by Fiel - 2010-07-23, 04:53 AM
Deserves its own topic - by Stereo - 2010-07-23, 05:07 AM
Deserves its own topic - by Fiel - 2010-07-23, 05:14 AM
Deserves its own topic - by JoeTang - 2010-07-23, 05:15 AM
Deserves its own topic - by Fiel - 2010-07-23, 05:24 AM
Deserves its own topic - by ZakumSlaYers - 2010-07-23, 06:41 AM
Deserves its own topic - by Kalovale - 2010-07-23, 06:58 AM
Deserves its own topic - by Stereo - 2010-07-23, 07:43 AM
Deserves its own topic - by rhpot03 - 2010-07-23, 12:41 PM
Deserves its own topic - by Fiel - 2010-07-23, 01:28 PM
Deserves its own topic - by kruimel0 - 2010-07-23, 01:45 PM
Deserves its own topic - by Erich - 2010-07-23, 01:50 PM
Deserves its own topic - by rhpot03 - 2010-07-23, 02:04 PM
Deserves its own topic - by Eos - 2010-07-24, 01:49 AM
Deserves its own topic - by Fiel - 2010-07-24, 01:57 AM
Deserves its own topic - by Bomber - 2010-07-24, 02:14 AM
Deserves its own topic - by youngtse - 2010-07-24, 10:22 AM
Deserves its own topic - by Takebacker - 2010-07-24, 10:39 AM
Deserves its own topic - by youngtse - 2010-07-24, 10:52 AM
Deserves its own topic - by AngelSL - 2010-07-24, 12:02 PM
Deserves its own topic - by buddyseeker - 2010-07-24, 12:40 PM
Deserves its own topic - by Manu - 2010-07-24, 12:59 PM
Deserves its own topic - by MysticHLE - 2010-07-24, 01:07 PM
Deserves its own topic - by Fiel - 2010-07-24, 01:40 PM
Deserves its own topic - by JoeTang - 2010-07-24, 02:39 PM
Deserves its own topic - by ZakumSlaYers - 2010-07-24, 02:56 PM
Deserves its own topic - by AngelSL - 2010-07-24, 11:30 PM
Deserves its own topic - by Fiel - 2010-07-24, 11:30 PM
Deserves its own topic - by Hanabira.Kage - 2010-07-25, 02:09 AM
Deserves its own topic - by Eos - 2010-07-25, 02:12 AM
Deserves its own topic - by buddyseeker - 2010-07-25, 08:06 AM
Deserves its own topic - by Nikkey - 2010-07-25, 08:54 AM
Deserves its own topic - by Eos - 2010-07-25, 10:10 AM
Deserves its own topic - by rhpot03 - 2010-07-25, 12:36 PM
Deserves its own topic - by Takebacker - 2010-07-25, 04:20 PM
Deserves its own topic - by Fiel - 2010-07-25, 05:10 PM
Deserves its own topic - by 50504724 - 2010-07-26, 05:18 AM
Deserves its own topic - by Fiel - 2010-08-03, 05:22 PM
Deserves its own topic - by Fiel - 2010-08-06, 06:16 AM
Deserves its own topic - by FluffyFoxxie - 2010-08-16, 04:14 AM
Deserves its own topic - by Fiel - 2010-08-16, 04:16 AM
Deserves its own topic - by kremechoko - 2010-08-16, 04:41 AM
Deserves its own topic - by larmie - 2010-08-16, 06:50 AM
Deserves its own topic - by FluffyFoxxie - 2010-08-16, 11:57 AM
Deserves its own topic - by Chameleonic - 2010-08-16, 12:01 PM
Deserves its own topic - by Dusk - 2010-08-16, 02:49 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)