[.net] C++/CLI Editor

Started by
1 comment, last by DaWanderer 18 years ago
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
Advertisement
well, it's not c++, but here's Tom Miller's advice on how to do a render loop in winforms:

https://blogs.msdn.com/tmiller/archive/2005/05/05/415008.aspx
Joel Martinez
http://codecube.net
[twitter]joelmartinez[/twitter]
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.

This topic is closed to new replies.

Advertisement