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
5
votes
1 answer

Implement Double Buffer in C

So I have a very high data acquisition rate of 16MB/s. I am reading 4MB of data into a buffer from a device file and then processing it. However, this method of writing then reading was to slow for the project. I would like to implement a double…
5
votes
1 answer

How do I properly allocate a memory buffer to apply double buffering in dosbox using turbo c?

Okay so I am trying to apply a double buffering technique in an emulated environment (DosBox) while using the IDE Turbo C++ 3.0 I am running windows 7 64bit(Not sure if that matters) and I have no clue how to properly execute the buffering routine…
Drozerix
  • 53
  • 6
4
votes
2 answers

how to synchronize double buffering in multithreaded app

I have two threads, one for data acquisition and the other one for display. In order to avoid from unnecessary synchronization. I use double buffering (or page flipping) as following: data thread is writing buffer 1 while display thread reading the…
Tae-Sung Shin
  • 20,215
  • 33
  • 138
  • 240
4
votes
3 answers

Double buffering with Panel

Double buffering the whole form can be done by setting the value of the "AllPaintingInWmPaint", "UserPaint" and "DoubleBuffer" ControlStyles to "true" (this.SetStyle(ControlStyles.AllPaintingInWmPaint | ControlStyles.UserPaint |…
AlexSavAlexandrov
  • 858
  • 2
  • 13
  • 34
4
votes
2 answers

Miserable text when drawing offscreen images in Java

I am stuck (beyond the limits of fun) at trying to fix text quality with offscreen image double buffering. Screen capture worth a thousand words. The ugly String is drawn to an offscreen image, and then copied to the paintComponent's Graphics…
4
votes
2 answers

WinAPI Double-buffering

A default winAPI application does not have double-buffering. Instead, it does a very, very good job of ensuring that only what needs to be drawn is drawn, and that gives it a seamless appearance. However, when you resize the window, the entire thing…
Alexander Rafferty
  • 6,134
  • 4
  • 33
  • 55
3
votes
3 answers

Java swing double buffering

i just started using double buffering and everything worked just fine until i wanted to add a JScrollPane to the screen so i later on can do some camera movements. Everything shows up fine (my sprites) EXCEPT the ScrollBars of the JScrollPane. And i…
Lucas Arrefelt
  • 3,879
  • 5
  • 41
  • 71
3
votes
1 answer

Win32 Double Buffering drawing black background

Doing a project in win32 in c++, attempting to double buffer the image being drawn, but I'm getting a black screen with the correct bitmaps drawn over it. This is also causing my WM_MOUSEMOVE condition, which drags a bitmap along with your cursor…
Aaron K
  • 437
  • 4
  • 10
3
votes
1 answer

Why is only 1 Depth/Stencil buffer needed, even when the swap chain is tripple buffered DirectX12

I am learning DirectX12 programming. And one thing that has me confused is in all the tutorials I read, they only create a single depth/stencil buffer even when triple/double buffering is used with the swap chain. Wouldn't you need a depth/stencil…
3
votes
3 answers

C# Double Buffering?

I am using the COSMOS compiler to write an OS in C# (For those who dont know COSMOS converts IL code into x86 assembly) and I am making a GUI. I have made GUIs before but now i am trying to make a double buffer. It sounds rather easy but following…
Grunt
  • 173
  • 2
  • 2
  • 11
3
votes
1 answer

Implementing Double Buffering using Futures and Promises using c++11

I started learning multi-threading and came across futures and promises for synchronizing threads over shared resources. So, I thought of implementing a famous Double Buffering problem using Futures and Promises( single producer and single…
jeldikk
  • 353
  • 2
  • 12
3
votes
1 answer

Screen tearing JPanel game and double buffering

I am currently using a JPanel to draw the elements from my game, however, there is occasional stuttering with the graphics, after some research I learnt about screen tearing and double buffering, which I believe is the solution to my problem,…
3
votes
1 answer

BufferedGraphics flicker

I have tried to implement custom double buffering, but it causes flicker. This is code in control (custom control that inherits from Control) constructor: bufferContext = new BufferedGraphicsContext(); SetStyle(ControlStyles.OptimizedDoubleBuffer,…
Ivan Ičin
  • 9,672
  • 5
  • 36
  • 57
3
votes
1 answer

WinForms - WPF like painting

We know very well how easy is too create a WPF application where user can paint a rectangle using the mouse. To do this you just create a Rectangle control and set its coordinates, you don't worry about DoubleBuffering, repainting and such stuff.…
Eugen
  • 2,934
  • 2
  • 26
  • 47
2
votes
2 answers

How to draw an Image underneath an open Menu

I'm implementing my own double-buffering for a BufferedImage in a JPanel so that I can display the mouse location in the BufferedImage without repainting every object back onto it on mousemovement. When a JMenu in the parent JFrame is open, the…
kiwikski
  • 150
  • 1
  • 11
1
2
3
10 11