Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

d000hg

I don't want lots of WM_PAINT messages

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

My level editor calls InvalidateRect whenever you scroll or load a new map etc. However if you drag the toolbar across, it keeps trying to repaint very quickly. However it calls my render() method each time which is too slow to keep up so you get a trailing white rectangle following. Can I somehow just find the latest occurance of a certain message in the queue and act on that, throwing away the others? ps do you know why I ca''nt just re-Present the scene? It doesn''t remember it if I render, then call Present an extra time.
Read about my game, project #1 NEW (13th August): A new screenshot is up, plus diaries for week #3
John 3:16

Share this post


Link to post
Share on other sites
Advertisement
Try to have timing on that... er... i mean give some ''clearance'' time before really re-render the whole thing. eg. all WM_PAINT received within one second after the 1st msg will be ignore.
Just my suggestion.

Share this post


Link to post
Share on other sites

  • 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!