Jump to content
  • Advertisement
Sign in to follow this  
amine137

slow dialog box in windowed mode

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

Hi all, I created an application where I use directdraw 7 to output a video to the screen. It is in windowed mode. I also have a dialog bar that controls the gain and exposure of the camera that is capturing the video. I use trackbars and edit boxes. However the dialog box is kind of slow. when I drag the bar, the edit boxes take time to update their values. (the dialog box is in overlapped child window) Is there a way to speed it up? Thank you,

Share this post


Link to post
Share on other sites
Advertisement
Is your app using a lot of CPU time? If you're slow on handling messages, it will slow down your modeless dialog processing.

Share this post


Link to post
Share on other sites
Do you call UpdateWindow in the dialog in the same call where the edit control is changed? If not, your dialog has to wait for the next paint to update, which won't occur until your video processing takes a break or calls OnIdle() (or whatever you use to be polite to the rest of the world).

Share this post


Link to post
Share on other sites
What does your message pump look like?

You should process all available messages before doing the render/update stuff. Otherwise you'll end up with seemingly lagging controls.

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!