Jump to content
  • Advertisement
Sign in to follow this  

Performance issue when mixing managed and unmanaged C++ with OpenCV

This topic is 2838 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 have written a motiontracker program in native C++ with OpenCV, now I would like to implement a nice GUI to it.

Because windows forms is very easy to work with I wanted to try to mix managed and unmanaged code with C++/CLI.
It was very easy to load my unmanaged C++ code in C++/CLI but when I run it the FPS decrease from 43 to 22 I never thought it would be such a big difference.
I just loaded my unmanaged object from the main managed class without having any form or anything but still this decrease in performance.

Is there any better and faster way of using windows forms with native C++ code?
Maybe sharing memory between a C# winforms app and the native C++ program pherhaps could be a good way, do you have any ideas?

Any help would be appreciated.

Best regards Zeiko

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!