From f4b1d1fce72c7b478d9603db8dfd66e471c9f467 Mon Sep 17 00:00:00 2001 From: Roy Ben Shabat Date: Tue, 11 Feb 2020 21:14:24 +0200 Subject: Implemented DisableRendering on RealTimeGraphX. Implemented partial rendering on tech board. --- .../RealTimeGraphX-master/RealTimeGraphX/GraphController.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'Software/Visual_Studio/SideChains/RealTimeGraphX-master/RealTimeGraphX/GraphController.cs') diff --git a/Software/Visual_Studio/SideChains/RealTimeGraphX-master/RealTimeGraphX/GraphController.cs b/Software/Visual_Studio/SideChains/RealTimeGraphX-master/RealTimeGraphX/GraphController.cs index f5fed3fe4..328f0736e 100644 --- a/Software/Visual_Studio/SideChains/RealTimeGraphX-master/RealTimeGraphX/GraphController.cs +++ b/Software/Visual_Studio/SideChains/RealTimeGraphX-master/RealTimeGraphX/GraphController.cs @@ -78,6 +78,11 @@ namespace RealTimeGraphX /// public bool IsPaused { get; set; } + /// + /// Gets or sets a value indicating whether to disable the rendering of data. + /// + public bool DisableRendering { get; set; } + /// /// Gets the data series collection. /// @@ -201,6 +206,7 @@ namespace RealTimeGraphX _render_thread = new Thread(RenderThreadMethod); _render_thread.IsBackground = true; + _render_thread.Priority = ThreadPriority.Highest; _render_thread.Start(); } @@ -215,7 +221,7 @@ namespace RealTimeGraphX { while (true) { - if (!IsPaused) + if (!IsPaused && !DisableRendering) { try { -- cgit v1.3.1