aboutsummaryrefslogtreecommitdiff
path: root/src/overclock.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/overclock.c')
-rw-r--r--src/overclock.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/overclock.c b/src/overclock.c
index 7c0faad..9160a04 100644
--- a/src/overclock.c
+++ b/src/overclock.c
@@ -262,10 +262,12 @@ bool gsr_overclock_start(gsr_overclock *self) {
}
*/
+ XSync(self->xnvctrl.display, False);
return true;
}
void gsr_overclock_stop(gsr_overclock *self) {
xnvctrl_set_attribute_offset(&self->xnvctrl, self->num_performance_levels, 0, NVCTRL_ATTRIB_GPU_MEM_TRANSFER_RATE);
//xnvctrl_set_attribute_offset(&self->xnvctrl, self->num_performance_levels, 0, NVCTRL_GPU_NVCLOCK);
+ XSync(self->xnvctrl.display, False);
}