Jump to content
  • Advertisement
Sign in to follow this  
LevyDee

Your Game Engine!

This topic is 2588 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm just kind of curious for comparison, but I was wondering how many lines of code is your game engine(if you are working on, or have made one!)? I wrote a script to count my header and .cpp file lines, and including my server, client + the actual engine, I'm at 8300 lines of code(white space included).

What about you guys? I really have no idea what is "normal" for the size of a game engine.

Share this post


Link to post
Share on other sites
Advertisement
I have no way to count but it would have to be roughly 30,000 lines so far (still allot of work to go, and not including game code).

But remember what Bill Gates said, "Judging progress on software by lines of code is like judging progress on an aircraft by weight" or some-such.

Share this post


Link to post
Share on other sites
Just a suggestion if your engine is in c/c++, instead of counting line of code, count line with a ;

It's still pretty useless but it make lore sense comparing as people have different coding structure.

Share this post


Link to post
Share on other sites

I'm just kind of curious for comparison, but I was wondering how many lines of code is your game engine(if you are working on, or have made one!)? I wrote a script to count my header and .cpp file lines, and including my server, client + the actual engine, I'm at 8300 lines of code(white space included).

What about you guys? I really have no idea what is "normal" for the size of a game engine.


I doubt there's such a thing as a 'normal size' for a game engine, and it's generally a bad idea to attach any value to the amount of code you've written instead of the quality of code

EDIT:

To contribute to this thread, mine has about 70000 lines of code right now

Share this post


Link to post
Share on other sites
The number of lines in the current engine is about 60000. Reducing the number of lines using well defined functions will reduce the possible errors both by reducing the lines that can have a bug and by spending more time on each line. When I started with the engine, it was twice as big and had about 15 times as much CPU overhead by using DirectX utility instead of having everything custom made.

Share this post


Link to post
Share on other sites

Interesting responses! BTW I wasn't measuring my engine by line count, I am just curious!


i dont use engines. i write all my code free and mainly only apply to global containers for data and few files. i try to do it all at one and don't like the sense of all that "engine" work.

Share this post


Link to post
Share on other sites
Not sure about the lines of code, but the current project I'm working on has about 1.4 megabytes of C# source.


Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!