From 2e8d7346c3d931cd772d997fbaf4f4b88b27c054 Mon Sep 17 00:00:00 2001 From: Asnivor Date: Mon, 21 Oct 2019 10:04:23 +0100 Subject: [PATCH] InputRoll: Implement proper double buffering (improves gdi+ inputroll performance by a factor of 8 or 9 on my machine) --- BizHawk.Client.EmuHawk/CustomControls/InputRoll.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/BizHawk.Client.EmuHawk/CustomControls/InputRoll.cs b/BizHawk.Client.EmuHawk/CustomControls/InputRoll.cs index cd83bf34b6..c83b5fd2a9 100644 --- a/BizHawk.Client.EmuHawk/CustomControls/InputRoll.cs +++ b/BizHawk.Client.EmuHawk/CustomControls/InputRoll.cs @@ -64,6 +64,7 @@ namespace BizHawk.Client.EmuHawk SetStyle(ControlStyles.UserPaint, true); SetStyle(ControlStyles.SupportsTransparentBackColor, true); SetStyle(ControlStyles.Opaque, true); + SetStyle(ControlStyles.OptimizedDoubleBuffer, true); //_renderer = new GdiRenderer(); _renderer = new GdiPlusRenderer();