aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/SideChains/RealTimeGraphX-master/RealTimeGraphX/GraphController.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Software/Visual_Studio/SideChains/RealTimeGraphX-master/RealTimeGraphX/GraphController.cs')
-rw-r--r--Software/Visual_Studio/SideChains/RealTimeGraphX-master/RealTimeGraphX/GraphController.cs8
1 files changed, 7 insertions, 1 deletions
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
@@ -79,6 +79,11 @@ namespace RealTimeGraphX
public bool IsPaused { get; set; }
/// <summary>
+ /// Gets or sets a value indicating whether to disable the rendering of data.
+ /// </summary>
+ public bool DisableRendering { get; set; }
+
+ /// <summary>
/// Gets the data series collection.
/// </summary>
public ObservableCollection<TDataSeries> DataSeriesCollection { get; }
@@ -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
{