From e82e491c31889375b76bf34d845f952e1b2dc60e Mon Sep 17 00:00:00 2001 From: David Anderson Date: Thu, 17 Dec 2009 18:09:23 +0000 Subject: [PATCH] - client: show message when suspend/resume GPU activity svn path=/trunk/boinc/; revision=19957 --- checkin_notes | 6 ++++++ client/cs_prefs.cpp | 9 +++++++++ 2 files changed, 15 insertions(+) diff --git a/checkin_notes b/checkin_notes index f420292d1d..d081f28f13 100644 --- a/checkin_notes +++ b/checkin_notes @@ -10209,3 +10209,9 @@ Charlie 17 Dec 2009 client/ coproc_detect.cpp + +David 17 Dec 2009 + - client: show message when suspend/resume GPU activity + + client/ + cs_prefs.cpp diff --git a/client/cs_prefs.cpp b/client/cs_prefs.cpp index 9fcee82174..89e2447c54 100644 --- a/client/cs_prefs.cpp +++ b/client/cs_prefs.cpp @@ -144,6 +144,7 @@ int CLIENT_STATE::check_suspend_processing() { } } + bool old_gpu_suspended = gpu_suspended; gpu_suspended = false; switch (gpu_mode.get_current()) { case RUN_MODE_ALWAYS: @@ -162,6 +163,14 @@ int CLIENT_STATE::check_suspend_processing() { } } + if (log_flags.cpu_sched) { + if (old_gpu_suspended && !gpu_suspended) { + msg_printf(NULL, MSG_INFO, "[cpu_sched] resuming GPU activity"); + } else if (!old_gpu_suspended && gpu_suspended) { + msg_printf(NULL, MSG_INFO, "[cpu_sched] suspending GPU activity"); + } + } + return 0; }