From bde65f094d78af42328b4e70c569c497e6cd0c55 Mon Sep 17 00:00:00 2001 From: Lightos1 <124387232+Lightos1@users.noreply.github.com> Date: Sun, 8 Mar 2026 13:27:36 +0100 Subject: [PATCH] Misc3: Add missing ram load --- Source/Horizon-OC-Monitor/source/Utils.hpp | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/Source/Horizon-OC-Monitor/source/Utils.hpp b/Source/Horizon-OC-Monitor/source/Utils.hpp index ef38323c..292ddd78 100644 --- a/Source/Horizon-OC-Monitor/source/Utils.hpp +++ b/Source/Horizon-OC-Monitor/source/Utils.hpp @@ -685,7 +685,7 @@ void Misc2(void*) { void Misc3(void*) { const bool isUsingEOS = usingEOS(); - + // Initialize voltage reading if needed bool canReadVoltages = false; if (!isUsingEOS && realVoltsPolling) { @@ -694,7 +694,7 @@ void Misc3(void*) { realVoltsPolling = false; } } - + do { mutexLock(&mutex_Misc); @@ -706,7 +706,7 @@ void Misc3(void*) { if (R_SUCCEEDED(tcCheck)) { tcGetSkinTemperatureMilliC(&skin_temperaturemiliC); } - + // Fan if (R_SUCCEEDED(pwmCheck)) { double temp = 0; @@ -720,16 +720,21 @@ void Misc3(void*) { } } } - + // GPU Load if (R_SUCCEEDED(nvCheck)) { nvIoctl(fd, NVGPU_GPU_IOCTL_PMU_GET_GPU_LOAD, &GPU_Load_u); } - + + SysClkContext sysclkCTX; + if (R_SUCCEEDED(sysclkIpcGetCurrentContext(&sysclkCTX))) { + partLoad[SysClkPartLoad_EMC] = sysclkCTX.partLoad[SysClkPartLoad_EMC]; + } + mutexUnlock(&mutex_Misc); - + } while (!leventWait(&threadexit, 1'000'000'000)); // 1 second timeout - + // Cleanup voltage reading if initialized if (canReadVoltages) { rgltrExit(); @@ -2453,4 +2458,4 @@ ALWAYS_INLINE void GetConfigSettings(ResolutionSettings* settings) { convertToUpper(key); settings->disableScreenshots = (key != "FALSE"); } -} \ No newline at end of file +}