Debugger: Fixed PPU Viewer auto-refreshing when auto-refresh is disabled

This commit is contained in:
Souryo 2017-09-06 00:25:21 -04:00
parent 7c20ff7a99
commit ef00f94c53

View file

@ -67,7 +67,7 @@ namespace Mesen.GUI.Debugger
this.GetData();
this.BeginInvoke((MethodInvoker)(() => this.RefreshViewers()));
} else if(e.NotificationType == InteropEmu.ConsoleNotificationType.PpuViewerDisplayFrame) {
if(!_refreshing && (DateTime.Now - _lastUpdate).Milliseconds > 66) {
if(ConfigManager.Config.DebugInfo.PpuAutoRefresh && !_refreshing && (DateTime.Now - _lastUpdate).Milliseconds > 66) {
//Update at 15 fps most
this.GetData();
this.BeginInvoke((MethodInvoker)(() => this.RefreshViewers()));