From 30ad80f0311bfdd6b289149e60378c7ff95480ae Mon Sep 17 00:00:00 2001 From: "NGnius (Graham)" Date: Mon, 11 Dec 2023 17:52:22 -0500 Subject: [PATCH] Add ppt divisor to get_ppt instead of just setter --- backend/src/settings/generic/gpu.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/src/settings/generic/gpu.rs b/backend/src/settings/generic/gpu.rs index 1da9a82..e538147 100644 --- a/backend/src/settings/generic/gpu.rs +++ b/backend/src/settings/generic/gpu.rs @@ -191,7 +191,8 @@ impl TGpu for Gpu { } fn get_ppt(&self) -> (Option, Option) { - (self.fast_ppt, self.slow_ppt) + (self.fast_ppt.map(|x| if let Some(ppt_divisor) = self.limits.ppt_divisor { x / ppt_divisor } else { x }), + self.slow_ppt.map(|x| if let Some(ppt_divisor) = self.limits.ppt_divisor { x / ppt_divisor } else { x })) } fn clock_limits(&mut self, limits: Option>) {