From 348814648a67770d88ab6f7eabea07ec64469f4f Mon Sep 17 00:00:00 2001 From: lasedark Date: Sun, 26 Apr 2020 20:45:35 +0800 Subject: [PATCH] Extend frame rate upto 60 fps --- source/Grabacr07.KanColleViewer/Views/Controls/KanColleHost.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/Grabacr07.KanColleViewer/Views/Controls/KanColleHost.cs b/source/Grabacr07.KanColleViewer/Views/Controls/KanColleHost.cs index 02e102340..f1d278fa4 100644 --- a/source/Grabacr07.KanColleViewer/Views/Controls/KanColleHost.cs +++ b/source/Grabacr07.KanColleViewer/Views/Controls/KanColleHost.cs @@ -45,9 +45,10 @@ public ChromiumWebBrowser WebBrowser DependencyProperty.Register(nameof(WebBrowser), typeof(ChromiumWebBrowser), typeof(KanColleHost), new UIPropertyMetadata(null, WebBrowserPropertyChangedCallback)); private static void WebBrowserPropertyChangedCallback(DependencyObject d, DependencyPropertyChangedEventArgs e) - { + { var instance = (KanColleHost)d; var newBrowser = (ChromiumWebBrowser)e.NewValue; + newBrowser.BrowserSettings.WindowlessFrameRate = 60; var oldBrowser = (ChromiumWebBrowser)e.OldValue; if (oldBrowser != null)