mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-11 19:36:28 +00:00
Added Overall CPU and RAM resource monitors for Windows Profile.
This commit is contained in:
1 parent
dd4c6408e1
commit
96bc222204
1 file changed
+2
-1
@@ -119,6 +119,7 @@ namespace Artemis.Modules.Effects.WindowsProfile
|
||||
_cores.Add(null);
|
||||
coreCount++;
|
||||
}
|
||||
_overallCPU = GetOverallPerformanceCounter();
|
||||
}
|
||||
catch (InvalidOperationException)
|
||||
{
|
||||
@@ -129,7 +130,7 @@ namespace Artemis.Modules.Effects.WindowsProfile
|
||||
|
||||
private void UpdateCpu(WindowsProfileDataModel dataModel)
|
||||
{
|
||||
if (_cores == null)
|
||||
if (_cores == null || _overallCPU == null)
|
||||
return;
|
||||
|
||||
// CPU is only updated every 15 frames, the performance counter gives 0 if updated too often
|
||||
|
||||
Reference in new issue
Block a user