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
0
votes
2 answers

DrawReversibleLine() and double buffering

I'm using a curstom double buffering and want to draw a rubber band line with DrawReversibleLine(). But how can this be done? This method draws directly to the screen, so I see no way how to draw on the background buffer. What would you do?
h0b0
  • 1,802
  • 1
  • 25
  • 44
0
votes
1 answer

Double Buffering non-rectangular allocation

I draw on Panel in Windows.Forms. When I use double buffering like here, I can allocate only rectangular area. And when I draw circle or ellipse remaining space is filled with black color. Please, help me figure out what I am doing wrong or how to…
0
votes
1 answer

The way pyglet swaps front and back buffers (`flip()`, wrapper for OpenGL's wglSwapLayerBuffers) on Windows can be 100 times too slow

Out of the blue (although I might have missed some automated update), the flip() method of pyglet on my P.C. became about 100 times slower (my script goes from about 20 to 0.2 FPS, and profiling shows that flip() is to blame). I don't understand…
440hertz
  • 39
  • 5
0
votes
1 answer

Animation flickering in java android

hope someone helps witch flickering. I'm been trying to wrote game based on youtube tutorial by RetroChicken but run into a problem with animation of my player object and background. Only coding 4 days in java, first year studying IT so i'm newbie…
0
votes
1 answer

WPF Run-Time Move and Resize Control on Canvas Jittery and Jerky and Flickering

To move and resize a custom control on a Canvas in run-time in a WPF project, I'm using the code here: http://csharphelper.com/blog/2017/05/move-resize-multiple-rectangles-wpf-c/ and here: How to drag a UserControl inside a Canvas However, the…
swabygw
  • 813
  • 1
  • 10
  • 22
0
votes
1 answer

Flickering on simple triangle render in openGL

Our current assignment requires us to use older fixed-pipeline methods in openGL. We're using LWJGL 2.9.3. The following code displays a triangle. The problem is, it flickers like crazy. The Display.swapBuffers() method doesn't throw an exception,…
AaronF
  • 2,841
  • 3
  • 22
  • 32
0
votes
1 answer

Console image flickering in windows 10

The following code works as expected in windows xp, but in windows 10 the image starts flickering. How do I make it work in windows 10? #include #include #include #define xMax 180 #define yMax 45 #define Fps 250 class…
Vladgor
  • 21
  • 3
0
votes
1 answer

How to improve windows form tools with reusable classes in C#?

I am pretty new in the programming world and cannot understand how to use this code from an answer here: How to avoid thousands of needless ListView.SelectedIndexChanged events by Robert Jeppesen. public class DoublebufferedListView :…
0
votes
1 answer

Double buffering throws exception at high load

I am testing my windows forms user control. When application load is high (say application takes more than 1 GB), it throws Out of memory or Argument invalid exceptions. Here is the code to draw the control with buffer, protected override void…
Kira
  • 1,403
  • 1
  • 17
  • 46
0
votes
1 answer

Double buffering with a JWindow

I am trying to double buffer a transparent JWindow however it seems like the technique used takes no effect (different cycle values are drawn over each other). public final class Overlay extends JWindow { public static final Color TRANSPARENT =…
Jire
  • 9,680
  • 14
  • 52
  • 87
0
votes
1 answer

Flickering in C# doing a SlideButton (DoubleBuffer not working apparently)

i got a problem with flickering in C# WinForms proyect. I simply made a SlideButton control: this is the code: using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Data; using…
0
votes
1 answer

Frames appearing out of order on GLSurfaceView

I'm writing an Android app using OpenGL ES and encountered this problem in the Nexus 5 emulator that comes with Android Studio. I have reduced my code to this small app, which simply draws a box going back and forth: package…
Jesbus
  • 790
  • 8
  • 24
0
votes
1 answer

Canonical term for "simultaneous data-latching"

I have a module (in my case on an FPGA) where several input values (registers) are updated sequentially (if at all), but are all copied in parallel in a single, atomic step to guarantee coherency during the following data processing steps. Is there…
mbschenkel
  • 1,865
  • 1
  • 18
  • 40
0
votes
1 answer

for heavy graphics apps in c# which will be more efficient double buffering or Buffered Graphics?

hello i have a heavy graphics application where i have to draw the graphics in 2-10 seconds every time this time varies depending upon the source application which is sending data to my application via UDP; i have some static graphics there is no…
Badr
  • 10,384
  • 15
  • 70
  • 104
0
votes
2 answers

Draw a Line with double buffer and pre-determined frame rate in Open GL

I want to write a program with two buffers and have a frame rate of 30 frames per second showing in the console. I'm using Open GL - C++ Display() { glutSwapBuffers(); } Timer for fps: void mytimer(int fps) { …
Mahdiyar Mzm
  • 9
  • 1
  • 5