Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Advantages and Disadvantages when using DoubleBuffer on control

Tags:

c#

.net

Default, Windows controls don't have DoubleBuffer. When I use it, I can reduce flicker. Why does it not use by default in Windows Controls.

And anyone can tell Advantages and Disadvantages when using DoubleBuffer on control.

Thanks.

like image 391
Leo Vo Avatar asked Jun 11 '11 05:06

Leo Vo


1 Answers

Double buffering technique is used when the drawing we wish to create has many details,and it is time consuming to draw even with a fast computer.In this technique instead of drawing in the screen,first drawn into an image and then the image drawn into the window.

WinForms is purposed for creating forms with UI elements (ComboBox, TextBox and etc.) first, so that's why it is not using Double Buffering by default.

Double buffering is purposed for graphic development.

So... Double buffering uses more memory but works faster, and there is no need to use it, when there is no many drawings

Hope this helps!

like image 172
Arsen Mkrtchyan Avatar answered Nov 12 '22 18:11

Arsen Mkrtchyan