diff --git a/api/graphics2.C b/api/graphics2.C index 7c069c88a9..81c7098980 100644 --- a/api/graphics2.C +++ b/api/graphics2.C @@ -26,7 +26,9 @@ #include "graphics2.h" 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) { static double total_render_time = 0; diff --git a/checkin_notes b/checkin_notes index ea2a2017a6..be7696d8af 100644 --- a/checkin_notes +++ b/checkin_notes @@ -862,3 +862,11 @@ Charlie Jan 29 2008 ViewProjectsGrid.cpp ViewWork.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 diff --git a/doc/ogm.png b/doc/ogm.png index 86a494e6c8..4a360f98cd 100644 Binary files a/doc/ogm.png and b/doc/ogm.png differ