public static void PulseUpdates() { var curFrame = ZetaDia.Memory.Executor.FrameCount; if (curFrame == _lastUpdate) { return; } _lastUpdate = curFrame; ScenesStorage.Update(); ExplorationGrid.PulseSetVisited(); BountyStatistics.Pulse(); }
private static void InternalTimerTick(object sender, EventArgs e) { try { if (_radarWindow == null) { return; } if (!DataModel.Enabled && DataModel.IsLazyCacheVisible) { return; } //Update(); if (BotEvents.IsBotRunning) { Update(); } else { //AdvDia.Update(); SafeFrameLock.ExecuteWithinFrameLock(() => { ScenesStorage.Update(); Update(); }, true); } var userControl = _radarWindow.Content as UserControl; if (userControl == null) { return; } var canvas = userControl.Content as RadarCanvas.RadarCanvas; if (canvas != null) { canvas.UpdateData(); } } catch (Exception ex) { if (!ex.Message.Contains("ReadProcessMemory")) { Logger.Debug("Exception in CacheUI.InternalTimerTick(). {0} {1} {2}", ex.Message, ex.InnerException, ex); } } }