Questions tagged [doublebuffered]

A computer-graphics technique for updating a dynamic image that greatly reduces the visual artifacts, especially flicker, caused by the screen pixels 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.

181 questions
2
votes
3 answers

Double buffering with C# has negative effect

I have written the following simple program, which draws lines on the screen every 100 milliseconds (triggered by timer1). I noticed that the drawing flickers a bit (that is, the window is not always completely blue, but some gray shines through).…
Roland Illig
  • 40,703
  • 10
  • 88
  • 121
2
votes
2 answers

My OpenAL C++ audio streaming buffer gliching

I have for the first time coding sound generating with OpenAL in C++. What I want to do is to generate endless sinus wave into a double buffering way. And the problem is that the sound is glittering/lags. I Think it is between the buffering and I…
Alexander
  • 471
  • 4
  • 18
2
votes
6 answers

Double buffering problem of a derived owner-drawn TabControl?

I have derived a TabControl with the express purpose of enabling double buffering, except nothing is working as expected. Here is the TabControl code: class DoubleBufferedTabControl : TabControl { public DoubleBufferedTabControl() : base() …
Gary Willoughby
  • 50,926
  • 41
  • 133
  • 199
2
votes
1 answer

Applet not displaying anything

A simple question with a perhaps not so simple solution. My code is supposed to show a triangle on a black background that can be moved around onscreen. Only nothing displays, just a white area that can't be right-clicked on. It does not work in…
imulsion
  • 8,820
  • 20
  • 54
  • 84
2
votes
3 answers

How can I stop window rendering and later resume?

I'd like to prevent my window from being updated until I finish receiving data from the server and render it. Can I hook on the WM_PAINT event, or better still call some Win32API method to prevent the window from being updated and unfreeze it…
Yonatan Karni
  • 977
  • 2
  • 13
  • 32
2
votes
5 answers

How to use double buffer in this case?

Let's say i have three control A, B, C. They are all inherited from CDialog, A is a main dialog , A contains B, and B contains C. and each time i use mouse mouse drag C, B and C will move together. This is a…
MemoryLeak
  • 7,322
  • 23
  • 90
  • 133
2
votes
1 answer

Flicker when custom drawing on a double buffered TTreeView

When listening to the AdvancedCustomDraw event of a TTreeView event this way: if Stage = cdPrePaint then begin // modify some Sender.Canvas properties and let it draw itself end else if Stage = cdPostPaint then begin // draw 'something…
Orwell
  • 1,468
  • 1
  • 13
  • 28
2
votes
3 answers

DirectX flickering video

Alright, so I wrote a custom VMR9 Allocator/Presenter which seems to work fine. However, when I attempt to copy video frames from the Allocator/Presenter surfaces into my application surfaces, the video appears to flicker. Audio playback is fine…
Alex
  • 322
  • 2
  • 13
2
votes
2 answers

I need help understanding how to write the code for double buffering in java applets

I understand the logic behind it, but don't know how to translate that to code. Could someone please show me on this example that I wrote? All the applet does is that the center rectangle moves up, down, right and left of its own accord. I want to…
zzelman
  • 425
  • 5
  • 14
2
votes
2 answers

Double Buffering in Java

I found this code of double buffering on internet but it has no explaination. I am a little confused in this code. Why is the Image "i" used? What is its use if it is to be used once? Why are we assigning changing color to Foreground color,when we…
Alfred
  • 1,543
  • 7
  • 33
  • 45
2
votes
0 answers

Flickering with collada model and mesh

I'm novice in three.js,so i need some assistance. init(); animate(); function init() { container = document.getElementById( 'container' ); renderer = new THREE.WebGLRenderer(); …
Yar
  • 21
  • 2
2
votes
2 answers

Simple animation using doublebufferd canvas is not smooth

I try to develop a simple flash game using a doublebuffer to draw the animations. The redraw happens when Event.ENTER_FRAME is fired. The backbuffer used for doublebuffering is of type BitmapData. The animation is very simple: I draw a 20x20-pixel…
2
votes
0 answers

How to correctly handle WS_EX_COMPOSITED?

Someone can explain how to create WndProc that is handling bug caused by WS_EX_COMPOSITED (the bug is endless WM_PAINT on some controls) ? All what i use for WS_EX_COMPOSITED is when my app window is hidden to be able to take screenshot of it(if…
VisaToHell
  • 508
  • 1
  • 12
  • 29
1
vote
1 answer

Java Double Buffering - Only Every Other Frame Drawn

I'm trying to develop a full-screen application, but I'm having issues with double buffers. public void create () { window = new JWindow (); window.setIgnoreRepaint (true); GraphicsEnvironment.getLocalGraphicsEnvironment…
Martynas
  • 319
  • 4
  • 10
1
vote
1 answer

Java SWT GC, how to flush the doublebuffering image forcefully?

Have the following code: image = new Image(display, imageData); offScreenImageGC.drawImage(image, 0, 0, imageData.width, imageData.height, imageData.x, imageData.y, imageData.width, imageData.height); /* Draw the off-screen image to the shell.…
PatlaDJ
  • 1,226
  • 2
  • 17
  • 31