Jump to content
  • Advertisement
Sign in to follow this  
turbotony

Slow performance with multithreaded C runtime library

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

In the company that i work are developing a software for geological science, in Win32 and DirectX. Recently we discovered a bug that crash the application when we get a string from a Dll, and we solved with setting the project properties for compile with C runtime multithread DLL (/MD option) and it worked fine. Now my question is we developed a MFC clone ( by company police we dont use mfc or another windows framework ) and put it on distinc DLL and linked with the main project, when we compile this DLL with the /MD option the aplication slows down like a turtle, for a example a window in our aplication that opens in less than 1 second now opens in 30 o more seconds. I cant figure out what cause this slow down, but i think is not related with the multithread code because the DLL is compile with /MT option wich is multithreaded but statical linked. Can anyone help me with that?

Share this post


Link to post
Share on other sites
Advertisement
It might be a sign that your code is using too many memory allocation/deallocation calls. When you use multithreaded versions of the C runtime library the runtime puts locks around the use of memory allocations. It also does this around other calls, but memory allocations are the most frequently encountered of the locked functions.

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!