mirror of
https://github.com/SpeedBreakerProject/speedbreaker.git
synced 2026-10-17 17:01:29 +02:00
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
15 lines
579 B
C++
15 lines
579 B
C++
// SpeedBreaker runtime. GPL-3.0-or-later (see COPYING).
|
|
//
|
|
// The GPU's clock for the [perf] line, where the kernel keeps the time spent
|
|
// at each frequency (devfreq's trans_stat: the Steam Frame's Adreno, under
|
|
// /sys/class/devfreq/<...>.gpu). It tells a GPU that is slower because it
|
|
// clocks down (heat, power) from one that is shared (the headset's compositor).
|
|
#pragma once
|
|
|
|
namespace gpu::clock
|
|
{
|
|
// The average clock since the previous call, in MHz; 0 where unknown
|
|
// (no devfreq GPU: amdgpu, macOS) and on the first call.
|
|
double AverageMHzSinceLast();
|
|
}
|