Questions tagged [double-buffering]

A computer-graphics technique for updating a dynamic image that greatly reduces the visual artifacts, especially flicker, caused by the screen pixel being changed. The new image is drawn in a "hidden" buffer while the user still sees the old image, stored in a "visible" buffer (hence "double-buffering"). When the new image is fully drawn, the visible and the hidden buffers are switched very quickly and the hidden buffer content becomes visible.

163 questions
2
votes
1 answer

VB.NET double buffering

I’ve been trying to get the double buffer function working in VB.NET GDI+ for a space invaders game using the following command Public Sub New() … Me.SetStyle(ControlStyles.DoubleBuffer, True) End Sub But because I am using a separate…
pluke
  • 3,832
  • 5
  • 45
  • 68
2
votes
1 answer

How to stop sprites from "blinking" when drawn all at once

I'm currently working on a school project: making a game using python and pygame library. Most of what happens in this game is when something on the screen is clicked, it should write certain things on the screen for the player to read. (the game is…
Ava87_M
  • 21
  • 1
2
votes
1 answer

How to resolve unwanted flickering of Controls when the Form has a background Image?

Overview of problem I am facing this issue when I try to hide some Labels, TextBoxes and a Button: all these Control flicker as they hide but other Control that are not involved are fine. I do not want this effect. Also, this doesn't happen for…
sighclone
  • 102
  • 1
  • 10
2
votes
1 answer

Double buffering in x86 VGA

To bring back some memories I decided to sit down and code a little assembler game in VGA mode 13h - until the point I realized the visual output is flickering as hell. At first I suspected it might be my clearscreen routine. Indeed by using a STOSW…
obscure
  • 11,916
  • 2
  • 17
  • 36
2
votes
0 answers

Painting issue of panels with Styles when using DoubleBuffered=true

This may be an embarcadero VCL problem, but using the latest Delphi (10.4.1) I came across the following problem. I am use to set DoubleBuffering to true in the FormCreate, but noted that this creates a painting issue of the panels when: the panel…
2
votes
1 answer

Double buffering in delphi not enough

I am trying to build an avionic attitude indicator with Delphi XE2. I am using tRotateimage for the horizon http://www.delphiarea.com/products/delphi-components/rotateimage/ This is behind a regular image which has transparent section in the…
E Demers
  • 103
  • 1
  • 8
2
votes
0 answers

How to update console without flickering and get keyboard input in C++

I'm writing a simple console game and I'm having problems with console flickering (i think system("cls") might be the issue?). I tried using double buffers but I messed it up I guess.I know Move() function doesnt work fully correct but it's enough…
2
votes
1 answer

iPhone opengl ES copy framebuffer into the renderbuffer

Hy folks, I'm working on an animation in opengl es. The animation should draw squares. This works already, but how can I copy the content from the Framebuffer into the renderbuffer, the problem is that with every frame only one square is on the…
Phil_M
  • 45
  • 5
2
votes
1 answer

GDI+ flickering

So I'm trying to make a cheap copy of Gyazo (the screenshotting tool) The problem is that the cursor coordinates are flickering, how can I prevent that? I have already tried WM_ERASEBKGND but it doesn't help anything. Also is there anything else…
Kordnak
  • 165
  • 10
2
votes
1 answer

How do I remove flickering with double buffering (java swing)

I'm very new to java.swing and I have looked at other answers but I'm struggling to understand how to properly double buffer in order to remove flickering. Currently I have a JFrame class that has an action Listener JButton northWest = new…
2
votes
1 answer

User control not getting painted c#

I have an application in which I can move from 1 user control to many user controls. When I was moving to many controls, I was getting flickering issues. To solve the flickering I enabled Double Buffering via - protected override CreateParams…
Arpit Gupta
  • 1,209
  • 1
  • 22
  • 39
2
votes
1 answer

HTML canvas double buffering frame-rate issues

I have a full-screen canvas with 3 images drawn on it. When I resize the window, these images change position; however, it appears to be very glitchy, more so in Firefox. I've been reading that double-buffering should resolve this issue, but I'm…
Ryan
  • 21,437
  • 7
  • 25
  • 28
2
votes
1 answer

Double buffering slows frame rendering | systrace analysis

Im working at a simple 2D Game with Custom View canvas drawing (postInvalidate()) and HardwareAcceleration. After weeks of performance analysis i decided to sync my update and drawing operations with the VSYNC pulse over the Interface…
methusa
  • 76
  • 1
  • 9
2
votes
1 answer

AccessViolationException with double buffered graphics

as the title already may tell, I am encountering an AccessViolationException as I'm trying to paint a Control in .NET using a BufferedGraphics object. This happens after a while, ealier or later. Evaluating the object's address, I noticed that it…
XChalo
  • 21
  • 3
2
votes
4 answers

Do we need to clear the buffer if we use double buffering?

Let say, we use double buffering. We first write the frame into the back buffer, then it will be swap into the front buffer to be displayed. There are 2 scenario here, which I assume have the same outcome. Assume we clear the back buffer, we then…
Yeo
  • 11,416
  • 6
  • 63
  • 90
1 2
3
10 11