mirror of https://github.com/BOINC/boinc.git
SCR: Only choose applications that are currently being
exected. Win SCR: Update screensaver logo. Win SCR: Reduce the amount of time the screensaver is stuck in startup mode from 10 secs down to 2 secs. It still takes a second or two to download state information from the CC. clientscr/ screensaver.cpp screensaver_win.cpp clientscr/res/ boinc.bmp svn path=/trunk/boinc/; revision=13417
This commit is contained in:
parent
6c71f08c6f
commit
8da726aa13
|
@ -8010,3 +8010,17 @@ Rytis 20 Aug 2007
|
||||||
user/
|
user/
|
||||||
forum_pm.php
|
forum_pm.php
|
||||||
white.css
|
white.css
|
||||||
|
|
||||||
|
Rom 20 Aug 2007
|
||||||
|
SCR: Only choose applications that are currently being
|
||||||
|
exected.
|
||||||
|
Win SCR: Update screensaver logo.
|
||||||
|
Win SCR: Reduce the amount of time the screensaver is stuck in startup mode
|
||||||
|
from 10 secs down to 2 secs. It still takes a second or two to download
|
||||||
|
state information from the CC.
|
||||||
|
|
||||||
|
clientscr/
|
||||||
|
screensaver.cpp
|
||||||
|
screensaver_win.cpp
|
||||||
|
clientscr/res/
|
||||||
|
boinc.bmp
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 73 KiB After Width: | Height: | Size: 73 KiB |
|
@ -33,8 +33,16 @@
|
||||||
// NOTE: Right now it just selects the first graphics app
|
// NOTE: Right now it just selects the first graphics app
|
||||||
// found.
|
// found.
|
||||||
RESULT* random_graphics_app(RESULTS& results) {
|
RESULT* random_graphics_app(RESULTS& results) {
|
||||||
|
bool bIsActive = false;
|
||||||
|
bool bIsExecuting = false;
|
||||||
|
bool bIsDownloaded = false;
|
||||||
|
|
||||||
for (unsigned i=0; i < results.results.size(); i++) {
|
for (unsigned i=0; i < results.results.size(); i++) {
|
||||||
if (results.results[i]->graphics_exec_path.size() > 0) {
|
if (results.results[i]->graphics_exec_path.size() > 0) {
|
||||||
|
bIsDownloaded = (RESULT_FILES_DOWNLOADED == results.results[i]->state);
|
||||||
|
bIsActive = (results.results[i]->active_task);
|
||||||
|
bIsExecuting = (CPU_SCHED_SCHEDULED == results.results[i]->scheduler_state);
|
||||||
|
if (!(bIsActive) || !(bIsDownloaded) || !(bIsExecuting)) continue;
|
||||||
return results.results[i];
|
return results.results[i];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1013,7 +1013,7 @@ DWORD WINAPI CScreensaver::DataManagementProc() {
|
||||||
tThreadCreateTime = time(0);
|
tThreadCreateTime = time(0);
|
||||||
|
|
||||||
while(1) {
|
while(1) {
|
||||||
bScreenSaverStarting = (10 >= (time(0) - tThreadCreateTime));
|
bScreenSaverStarting = (2 >= (time(0) - tThreadCreateTime));
|
||||||
|
|
||||||
BOINCTRACE(_T("CScreensaver::DataManagementProc - ErrorMode = '%d', ErrorCode = '%x'\n"), m_bErrorMode, m_hrError);
|
BOINCTRACE(_T("CScreensaver::DataManagementProc - ErrorMode = '%d', ErrorCode = '%x'\n"), m_bErrorMode, m_hrError);
|
||||||
|
|
||||||
|
@ -1659,6 +1659,7 @@ VOID CScreensaver::UpdateErrorBox() {
|
||||||
if (dwTimeLast == 0) {
|
if (dwTimeLast == 0) {
|
||||||
dwTimeLast = timeGetTime();
|
dwTimeLast = timeGetTime();
|
||||||
}
|
}
|
||||||
|
|
||||||
dwTimeNow = timeGetTime();
|
dwTimeNow = timeGetTime();
|
||||||
fTimeDelta = (FLOAT)(dwTimeNow - dwTimeLast) / 10000.0f;
|
fTimeDelta = (FLOAT)(dwTimeNow - dwTimeLast) / 10000.0f;
|
||||||
dwTimeLast = dwTimeNow;
|
dwTimeLast = dwTimeNow;
|
||||||
|
@ -1726,7 +1727,7 @@ VOID CScreensaver::UpdateErrorBox() {
|
||||||
(INT)(pMonitorInfo->xError + pMonitorInfo->widthError),
|
(INT)(pMonitorInfo->xError + pMonitorInfo->widthError),
|
||||||
(INT)(pMonitorInfo->yError + pMonitorInfo->heightError));
|
(INT)(pMonitorInfo->yError + pMonitorInfo->heightError));
|
||||||
|
|
||||||
if ((dwTimeNow - pMonitorInfo->dwTimeLastUpdate) > 10000)
|
if ((dwTimeNow - pMonitorInfo->dwTimeLastUpdate) > 1000)
|
||||||
{
|
{
|
||||||
pMonitorInfo->dwTimeLastUpdate = dwTimeNow;
|
pMonitorInfo->dwTimeLastUpdate = dwTimeNow;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue