Jump to content
  • Advertisement
Sign in to follow this  
Sagar_Indurkhya

Massive Computation: C++ vs C#

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

Ok. Remember what I said about the project I am doing? - It is so much computations, that real time is out of the question. - I am going to use .NET. - I need to get it done fast. What would you recommend?

Share this post


Link to post
Share on other sites
Advertisement
If real-time is out of the question then go ahead and use C#, if that's what you wan't to use and gets the job done better and quicker. If you wan't best of both worlds just create a DLL with all your math computations in C++ and link to it from C#.

Share this post


Link to post
Share on other sites
IIRC C# is somewhat slower at floating point. It was, anyway; that may have changed.

But if you're not working in real time, I don't know how much it matters, and if you're writing managed code anyway, you may as well go for C#.


Although the DLL idea is not a bad one...I'm not sure how much comparative overhead the dynamic linking will cause.

Share this post


Link to post
Share on other sites
Quote:
Original post by Sagar_Indurkhya
Ok. Remember what I said about the project I am doing?


Nope. And I hate it when people assume I do. You should provide a link next time.

Share this post


Link to post
Share on other sites
Quote:
Original post by MaulingMonkey
Quote:
Original post by Sagar_Indurkhya
Ok. Remember what I said about the project I am doing?


Nope. And I hate it when people assume I do. You should provide a link next time.


Sorry, I meant for the people who posted last time to post again. Umhhh, it is just a project that does huge calculations. It isn't in real time. It records variables into a log, and can play them back like a movie.

Share this post


Link to post
Share on other sites
You won't be able to run it in a data center if you use .NET..
But unless you need truly massive calculations then that shouldn't be an issue, so use whatever language gets the job done faster.

Share this post


Link to post
Share on other sites
Quote:
Original post by Sagar_Indurkhya
What is a data center? I meant for it to run on my home cpu. It records a log file, so that I can stop and start it at any time.
I meant a super computer.
Your local university might be able to donate/lease you some cpu time for research projects.
But it'll probably take weeks to setup so unless the simulation would take months to complete on a home computer it's not really an option.

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!