Archived

This topic is now archived and is closed to further replies.

C++ ?

This topic is 5747 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

Will c++ do a good job or c is a must if you wanna make fast 3d engine? i''m sorry for these kind of question but i just want to start with right steps..

Share this post


Link to post
Share on other sites
C++ is simply a superset oc C. You can build and compile normal C programs just fine through a C++ compiler like Visual Studio, etc.

So it makes very little difference which you use. The only time performance is any different between C and C++ is if you use virtual functions. And even then, the Vtable dereference is so minor that you may lose a few nanoseconds... The profiler might notice, but not you.

The most popular answer on Gamedev.net: Go with what your comfortable with!

Oh well,
Landsknecht

Share this post


Link to post
Share on other sites
It doesn''t matter what language you use for the job. Don''t use language features that are slow in parts of your program that require speed. The largest factor on the speed of your engine will be your coding ability, and the way you prioritize optimization. Write legibally, use a profiler, and only optimize the most used areas of your program.

- Kevin "BaShildy" King
Game Programmer: DigiPen
www.mpogd.com

Share this post


Link to post
Share on other sites