Xenon257R / blue-archive-rainmeter

A Blue Archive themed Rainmeter suite for your Windows desktop.
MIT License
110 stars 4 forks source link

GPU Monitor over 100% #17

Closed WilloIzCitron closed 4 months ago

WilloIzCitron commented 4 months ago

i think the gpu usage was over 100% looks unnatural

Reproduce:

Picture: image

WilloIzCitron commented 4 months ago

update: i think it was a script error

image

Xenon257R commented 4 months ago

It definitely looks like an incorrect implementation of the UsageMonitor plugin by me. I do not own a device with multiple GPUs, so this issue went unnoticed. The official UsageMonitor documentation implies a problem with summation vs. average of the resource values, but I will have to rely on you to confirm the below solution works as intended.

Try changing the following value in BlueArchive\template\resources.inc in Line 62 (under a section titled [GPUUsage]):

Index=0 to Index=-1

The new -1 value should fix the overflowing display value by taking the average of all detected GPUs' usage percentage instead of their sum. However, keep in mind that the value might still be different from Task Manager's value according to this thread on the Rainmeter Forums; the difference unfortunately cannot be resolved, but should be small enough to be negligible.

You may want to change the value of Index of the CPU measurement in the same manner as well, located on Line 48 in section [CPUUsage].

Let me know if it works so I know to apply this change in a clean-up patch for the suite.

WilloIzCitron commented 4 months ago

neat! i fixed the bug! image