BGE source code fact

I had a little extra free time this weekend and I was curious to find how out how many lines of code the blender game engine contained.

Anyways, here are the results of each test:

BlenderRoutines = 13413 lines of code
Converter = 6794 lines of code
Expressions = 11523 lines of code
GameLogic = 17237 lines of code
GamePlayer = 13225 lines of code
Ketsji = 40200 lines of code
Network = 869 lines of code
Physics = 13369 lines of code
Rasterizer = 7150 lines of code
SceneGraph = 2592 lines of code
VideoTexture = 7121 lines of code

This brings the source code of the BGE (2.49b) to a grand total of 133493 lines of code. It’s not really that important, just an interesting fact.

There is probably a lot less lines of code in the 2.5 BGE. I’d be interested to see the numbers for that as well. I know Sumo has been removed, as well as all the deprecated py api methods. Anyways, thanks for sharing. :wink:

with an operating system installed you only need an one liner :wink:


[[email protected] gameengine]$ for i in $(find . -maxdepth 1 -type d -and -not -name .svn); do echo "Lines in " $i; find $i -name \*.cpp -or -name \*.h -or -name \*.py -and -not -path \*.svn\* | xargs cat |wc -l; done
Lines in  .
136852
Lines in  ./Physics
7067
Lines in  ./Rasterizer
8573
Lines in  ./GamePlayer
29979
Lines in  ./Network
1217
Lines in  ./Converter
10824
Lines in  ./VideoTexture
7941
Lines in  ./BlenderRoutines
2778
Lines in  ./Expressions
7746
Lines in  ./GameLogic
11765
Lines in  ./SceneGraph
3078
Lines in  ./Ketsji
39121
Lines in  ./PyDoc
6763

I hate when I spend a time making a program do something and then someone comes along and says, “Yeah, you could have done that by typing only this one line here:”

It’s really a spirit crusher. At least it wasn’t something that happened at work, in front of your boss.

Id have expected 2.5 to be less also but I got this for the latest svn.


Lines in  .
136860
Lines in  ./Rasterizer
8573
Lines in  ./Physics
7067
Lines in  ./Network
1217
Lines in  ./BlenderRoutines
2778
Lines in  ./VideoTexture
7941
Lines in  ./SceneGraph
3078
Lines in  ./GamePlayer
29979
Lines in  ./GameLogic
11765
Lines in  ./PyDoc
6763
Lines in  ./Expressions
7746
Lines in  ./Ketsji
39129
Lines in  ./Converter
10824

Iconoclast, I wouldn’t worry about it, Just some encouragement for C-106 Delta to move to a real OS!
…or install cygwin

Iconoclast, I wouldn’t worry about it, Just some encouragement for C-106 Delta to move to a real OS!

Real men build real OS’s out of canoes and dirt. :wink:

I also would have expected less.

Kirado, I was out of canoes and used bears instead. When the bears finish making the canoes I’m switching back to anything native to the KDE. Have they done that ATI driver issue yet? I’ll have to go check. Before I go gnome-ing nuts. I realize I could install KDE, but it just doesn’t feel the same. I think I’ll have to go find a stylish hat to study. Maybe 11 of them.