Jump to content
  • Advertisement
Sign in to follow this  
DrEvil

[.net] C++/CLI Editor

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

Hello. I'm currently working on a proof of concept sort of editor using C++/CLI. I've built the GUI with windows forms and an now getting ready to hook up a native DX9 engine rendering class to render to one of the controls. My question is this. Where should one put the 'frame loop' in such an app. Typically in Win32/MFC this is within the message pump where the peekmessages and such are. I'm not sure where my realtime editor code should be in a C++/CLI app. Any help is appreciated. Thanks

Share this post


Link to post
Share on other sites
Advertisement
I've used this style of render loop and can vouch for it. However, I'd recommend putting in some code to cap the frame rate at 60 fps, since my program was taking ninety some percent of the CPU cycles (making other apps unresponsive) before I added a simple fps cap.

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!