Author Topic: Code Size  (Read 2037 times)

Offline TechSY730

  • Core Member Mark V
  • *****
  • Posts: 4,570
Code Size
« on: January 14, 2011, 06:22:53 pm »
I'm just curious. How many source files does AI war have now, and how many separate classes? How big is the size of all the source files (the size of the compiled files is a figure I can get ;))? On a related note, how long does it take to do a full compile nowadays?

Offline x4000

  • Chris McElligott Park, Arcen Founder and Lead Dev
  • Arcen Staff
  • Zenith Council Member Mark III
  • *****
  • Posts: 31,651
Re: Code Size
« Reply #1 on: January 14, 2011, 06:33:23 pm »
200 files, about 164,000 lines of code.  Looks like 291 classes, 33 structs, and about 100 enums.  Compiling is subjective, it varies by computer.  In Visual Studio, just compiling the DLL was taking about 3 seconds on my old machine, but I just updated to an i 2600K yesterday and that's down to under a second.  The killer is in unity, it was taking 40+ seconds before to get from Visual Studio to the main menu of the game, now that's down to about 14 seconds.
Have ideas or bug reports for one of our games?  Mantis for Suggestions and Bug Reports. Thanks for helping to make our games better!

Offline TechSY730

  • Core Member Mark V
  • *****
  • Posts: 4,570
Re: Code Size
« Reply #2 on: January 14, 2011, 06:35:05 pm »
Wow. Its not a monolith, but that still is a good bit of code.  :o

Offline x4000

  • Chris McElligott Park, Arcen Founder and Lead Dev
  • Arcen Staff
  • Zenith Council Member Mark III
  • *****
  • Posts: 31,651
Re: Code Size
« Reply #3 on: January 14, 2011, 06:37:49 pm »
Bear in mind that's with almost no code for engine-related stuff, aside from our layers on top of the unity engine.  There are probably hundreds of thousands or millions of lines of code in the underlying engine.  For game-logic type code with almost no code duplication, those 164k lines are actually a lot more than they sound like.

But, yes, I've worked on much larger systems (my old company www.startadev.com, where I was the lead dev / CTO, has a massive amount of stuff there).
Have ideas or bug reports for one of our games?  Mantis for Suggestions and Bug Reports. Thanks for helping to make our games better!

Offline KPJZKC

  • Newbie Mark II
  • *
  • Posts: 17
Re: Code Size
« Reply #4 on: January 14, 2011, 08:47:07 pm »
How's the 2600k working out for you?

Hit a good overclock? Apologies if you haven't had time with the labouring over patches  ;D

Offline x4000

  • Chris McElligott Park, Arcen Founder and Lead Dev
  • Arcen Staff
  • Zenith Council Member Mark III
  • *****
  • Posts: 31,651
Re: Code Size
« Reply #5 on: January 14, 2011, 08:48:57 pm »
How's the 2600k working out for you?

Hit a good overclock? Apologies if you haven't had time with the labouring over patches  ;D

I'm loving it, and I haven't even overclocked it yet.  No real time for it, and I got it for the base speed even moreso than the overclocking.  It's about 5X faster at most stuff than my Q6600 without either of them being overclocked.
Have ideas or bug reports for one of our games?  Mantis for Suggestions and Bug Reports. Thanks for helping to make our games better!

Offline Burnstreet

  • Full Member
  • ***
  • Posts: 129
Re: Code Size
« Reply #6 on: January 14, 2011, 09:01:12 pm »
5x faster?
wow
I currently have an q6600 on stock clocks, I think I have to think about an upgrade (though budget probably won't approve until next year :( )

Offline x4000

  • Chris McElligott Park, Arcen Founder and Lead Dev
  • Arcen Staff
  • Zenith Council Member Mark III
  • *****
  • Posts: 31,651
Re: Code Size
« Reply #7 on: January 14, 2011, 09:04:26 pm »
Bear in mind I also did a major upgrade of RAM (DDR3 from DDR2), and to a SATA III HDD from SATA II, also.  So it's not all the CPU alone.  But, yeah -- 5X faster.
Have ideas or bug reports for one of our games?  Mantis for Suggestions and Bug Reports. Thanks for helping to make our games better!

Offline KPJZKC

  • Newbie Mark II
  • *
  • Posts: 17
Re: Code Size
« Reply #8 on: January 14, 2011, 09:08:49 pm »
Since Sandy Bridge came out (and was well received), I've been torturing myself thinking about possible builds (and my current one isn't even so bad, two years old running a Q9550 and 4870 (only 512mb though, and it has the "critical core failure" led lit pretty much all the time - somehow rubbing the card fixes it for a day or two))...

I don't even NEED it as such...do people usually get cravings for enthusiast pc components?  :P

Offline x4000

  • Chris McElligott Park, Arcen Founder and Lead Dev
  • Arcen Staff
  • Zenith Council Member Mark III
  • *****
  • Posts: 31,651
Re: Code Size
« Reply #9 on: January 14, 2011, 09:19:58 pm »
Well, if you want the enthusiast sandy bridge stuff, you have to wait, anyway.  The 2600K is great, but it's just the top of the mainstream lines.  Tell yourself that!  :P
Have ideas or bug reports for one of our games?  Mantis for Suggestions and Bug Reports. Thanks for helping to make our games better!

Offline KPJZKC

  • Newbie Mark II
  • *
  • Posts: 17
Re: Code Size
« Reply #10 on: January 14, 2011, 09:36:00 pm »
Wonderful, more temptation to look forward to!

Thanks for that  ;D

Offline Echo35

  • Master Member Mark II
  • *****
  • Posts: 1,703
  • More turrets! MORE TURRETS!
Re: Code Size
« Reply #11 on: January 14, 2011, 10:07:05 pm »
Bear in mind I also did a major upgrade of RAM (DDR3 from DDR2), and to a SATA III HDD from SATA II, also.  So it's not all the CPU alone.  But, yeah -- 5X faster.

What, no solid state? :P

I've actually got a q6600 clocked about a GHz over a GTX280 and 4 GB of DDR2 RAM and I can still max out any game I want, so as much as I love being a bleeding edge enthusiast, I have no need to right now, and am broke anyway ::)

Offline keith.lamothe

  • Arcen Games Staff
  • Arcen Staff
  • Zenith Council Member Mark III
  • *****
  • Posts: 19,505
Re: Code Size
« Reply #12 on: January 15, 2011, 06:26:35 pm »
What, no solid state? :P
I really want one, and periodically shop around, but all the prices look like they're intended for similar sized chunks of solid gold ;)
Have ideas or bug reports for one of our games? Mantis for Suggestions and Bug Reports. Thanks for helping to make our games better!

Offline Echo35

  • Master Member Mark II
  • *****
  • Posts: 1,703
  • More turrets! MORE TURRETS!
Re: Code Size
« Reply #13 on: January 15, 2011, 10:51:42 pm »
What, no solid state? :P
I really want one, and periodically shop around, but all the prices look like they're intended for similar sized chunks of solid gold ;)

Well they are rather restrictively expensive. You could always do what one of the guys at our LAN parties did. He had a Solid State to boot the machine and about 16 GB of RAM with a special script set up to create RAM disks and load executables into them on launch, so he would essentially be playing, say, Left 4 Dead 2 off RAM entirely, and the SSD made the machine boot fast in the first place.