- graphics API: default max graphics CPU fraction is 0.2

(see accompanying changes in example app;
    app should parse project-specific prefs)

svn path=/trunk/boinc/; revision=14635
This commit is contained in:
David Anderson 2008-01-29 19:51:26 +00:00
parent 60c56c9e0a
commit 5efd1cf38a
3 changed files with 11 additions and 1 deletions

View File

@ -26,7 +26,9 @@
#include "graphics2.h" #include "graphics2.h"
double boinc_max_fps = 30.; double boinc_max_fps = 30.;
double boinc_max_gfx_cpu_frac; double boinc_max_gfx_cpu_frac = 0.2;
// needs to be fairly low. Graphics apps run at normal priority,
// so they can prevent main app from getting any time
bool throttled_app_render(int x, int y, double t) { bool throttled_app_render(int x, int y, double t) {
static double total_render_time = 0; static double total_render_time = 0;

View File

@ -862,3 +862,11 @@ Charlie Jan 29 2008
ViewProjectsGrid.cpp ViewProjectsGrid.cpp
ViewWork.cpp ViewWork.cpp
ViewWorkGrid.cpp ViewWorkGrid.cpp
David Jan 20 2008
- graphics API: default max graphics CPU fraction is 0.2
(see accompanying changes in example app;
app should parse project-specific prefs)
api/
graphics2.C

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.0 KiB

After

Width:  |  Height:  |  Size: 9.9 KiB