~ubuntu-branches/ubuntu/lucid/boinc/lucid

« back to all changes in this revision

Viewing changes to api/graphics2.C

  • Committer: Bazaar Package Importer
  • Author(s): Frank S. Thomas, Frank S. Thomas
  • Date: 2008-05-31 08:02:47 UTC
  • mfrom: (1.1.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20080531080247-4ce890lp2rc768cr
Tags: 6.2.7-1
[ Frank S. Thomas ]
* New upstream release.
  - BOINC Manager: Redraw disk usage charts immediately after connecting to
    a (different) client. (closes: 463823)
* debian/copyright:
  - Added the instructions from debian/README.Debian-source about how
    repackaged BOINC tarballs can be reproduced because DevRef now
    recommends to put this here instead of in the afore-mentioned file.
  - Updated for the new release.
* Removed the obsolete debian/README.Debian-source.
* For consistency upstream renamed the core client and the command tool
  ("boinc_client" to "boinc" and "boinc_cmd" to "boinccmd"). Done the same
  in all packages and created symlinks with the old names for the binaries
  and man pages. Also added an entry in debian/boinc-client.NEWS explaining
  this change.
* debian/rules: Do not list Makefile.ins in the clean target individually,
  just remove all that can be found.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// Berkeley Open Infrastructure for Network Computing
 
2
// http://boinc.berkeley.edu
 
3
// Copyright (C) 2008 University of California
 
4
//
 
5
// This is free software; you can redistribute it and/or
 
6
// modify it under the terms of the GNU Lesser General Public
 
7
// License as published by the Free Software Foundation;
 
8
// either version 2.1 of the License, or (at your option) any later version.
 
9
//
 
10
// This software is distributed in the hope that it will be useful,
 
11
// but WITHOUT ANY WARRANTY; without even the implied warranty of
 
12
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 
13
// See the GNU Lesser General Public License for more details.
 
14
//
 
15
// To view the GNU Lesser General Public License visit
 
16
// http://www.gnu.org/copyleft/lesser.html
 
17
// or write to the Free Software Foundation, Inc.,
 
18
// 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
19
 
 
20
// platform-independent part of graphics library
 
21
//
1
22
#include "util.h"
2
23
#include "app_ipc.h"
3
24
#include "shmem.h"
4
25
#include "boinc_api.h"
5
26
#include "graphics2.h"
6
27
 
7
 
double boinc_max_fps;
8
 
double boinc_max_gfx_cpu_frac;
 
28
double boinc_max_fps = 30.;
 
29
double boinc_max_gfx_cpu_frac = 0.2;
 
30
    // needs to be fairly low.  Graphics apps run at normal priority,
 
31
    // so they can prevent main app from getting any time
9
32
 
10
33
bool throttled_app_render(int x, int y, double t) {
11
34
    static double total_render_time = 0;