# Set chart performance data line and point highligting off. "chart_line_highlight" takes chart name or "" for highlighting or not. "chart_point_highlight" takes data point index or "-1" for not highlighting.
self.chart_line_highlight=""
self.chart_point_highlight=-1
...
...
@@ -2173,7 +2176,7 @@ class Performance:
chart_y_limit=100
# Check if widget is the drawingarea on the headerbar for CPU usage.
ifwidget_name=="ps_hb_cpu_drawing_area":
ifwidget_name=="ps_hb_cpu_da":
# Get performance data to be drawn.
performance_data1=self.cpu_usage_percent_ave[-1]
...
...
@@ -2185,7 +2188,7 @@ class Performance:
chart_y_limit=100
# Check if widget is the drawingarea on the headerbar for RAM usage.
Performance.network_send_speed[i]=Performance.network_send_speed[i][chart_data_history_current-chart_data_history_new:]# "network_send_speed" list has sub-lists and trimming is performed for every sub-lists (for every network card).
ifMainWindow.gpu_tb.get_active()==True:
fromGpuimportGpu
Gpu.fps_count=Gpu.fps_count[chart_data_history_current-chart_data_history_new:]# "fps_count" list has no sub-lists and trimming is performed in this way.
Gpu.gpu_load_list=Gpu.gpu_load_list[chart_data_history_current-chart_data_history_new:]# "gpu_load_list" list has no sub-lists and trimming is performed in this way.
ifchart_data_history_current<chart_data_history_new:# Add list of zeroes to the beginning part of the lists if new "chart_data_history" value is bigger than the old value.
list_to_add=[0]*(chart_data_history_new-chart_data_history_current)# Generate list of zeroes for adding to the beginning of te lists.
Performance.cpu_usage_percent_ave=list_to_add+Performance.cpu_usage_percent_ave# "cpu_usage_percent_ave" list has no sub-lists and addition is performed in this way.
...
...
@@ -721,7 +721,7 @@ class SettingsWindow:
Performance.network_send_speed[i]=list_to_add+Performance.network_send_speed[i]# "network_send_speed" list has sub-lists and addition is performed for every sub-lists (for every network card).
ifMainWindow.gpu_tb.get_active()==True:
fromGpuimportGpu
Gpu.fps_count=list_to_add+Gpu.fps_count# "fps_count" list has no sub-lists and addition is performed in this way.
Gpu.gpu_load_list=list_to_add+Gpu.gpu_load_list# "gpu_load_list" list has no sub-lists and addition is performed in this way.
# ----------------------- Called for applying settings for all opened tabs (since application start) without waiting update interval -----------------------