Skip to main content
GameDev.net gamedev.net
🔒 Locked

[.net] C++/CLI Editor

Started by DrEvil Apr 5, 2006 at 1:31 PM 1 replies 550+ views
Original Post
DrEvil
DrEvil
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
DaWanderer
DaWanderer
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.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.