Jump to content
Xtreme .Net Talk

Recommended Posts

  • Leaders
Posted
What sort of graphics are these? Double buffering will probably help, especially if you are animating something. Just render your graphics to a Bitmap and when you are done draw it to the panel (the easiest way to do this is by setting the bitmap as the panel's background image and invalidating the panel with the bitmap's bounds when you want to refresh the image).
[sIGPIC]e[/sIGPIC]
Posted

I'm already using double buffering (rendering to a bitmap and then showing all the graphics when done, I'm also using manual painting). As I said, it flickers only occasionally, like 3 times per minute or so, without double buffering it flickers every millisecond :)

 

Anyway, is there any way to disable the panels refresh, invalidate, paint event, calls? I don't know, it seems to me that its a refresh issue, as with manage DX where we need also to disable the form's refresh. Unfortunately that seems to have no effect on this problem of mine.

 

PS: I noticed that this happens specially when the OS displays some system messages like when we receive a pop-msn from message about receiving a new email... weird...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...