943,660 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Unsolved
  • Views: 708
  • C++ RSS
Oct 1st, 2008
0

reducing flicker

Expand Post »
I am drawing on a bit my, then re-loading the bitmap(to erase it) then drawing on it again at 100Hz. I am getting flicker. Is there a way to reduce this flicker? Or a better way to do this than to reload the bitmap everytime? Thanks.
Similar Threads
Reputation Points: 10
Solved Threads: 2
Junior Poster in Training
Nemoticchigga is offline Offline
98 posts
since Feb 2008
Oct 1st, 2008
0

Re: reducing flicker

Your going to have to be much more specific on your problem
Post more details or code if possible.
Reputation Points: 1429
Solved Threads: 129
Posting Virtuoso
William Hemsworth is offline Offline
1,542 posts
since Mar 2008
Oct 1st, 2008
0

Re: reducing flicker

Clear the off-screen buffer
Draw into it
Copy it to the on-screen buffer

At any given moment in time, every pixel in the on-screen buffer is either the old pixel, or the new pixel. The on-screen buffer is never in a blanked state.
Team Colleague
Reputation Points: 5862
Solved Threads: 950
Posting Sage
Salem is offline Offline
7,164 posts
since Dec 2005
Oct 1st, 2008
0

Re: reducing flicker

Do what Salem said. I'm pretty sure it's called double buffering.
Last edited by TheBeast32; Oct 1st, 2008 at 4:43 pm.
Reputation Points: 79
Solved Threads: 6
Posting Whiz in Training
TheBeast32 is offline Offline
236 posts
since Dec 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: Seg Fault problem
Next Thread in C++ Forum Timeline: 2d ghx and gui





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC