/[gzz]/gzz/gfx/jni/GzzGL-jni.cxx
ViewVC logotype

Diff of /gzz/gfx/jni/GzzGL-jni.cxx

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.70 by tjl, Tue Dec 10 12:45:52 2002 UTC revision 1.71 by tjl, Thu Dec 12 18:40:30 2002 UTC
# Line 1039  JNIEXPORT void JNICALL Java_gzz_gfx_gl_G Line 1039  JNIEXPORT void JNICALL Java_gzz_gfx_gl_G
1039    
1040        if(dbg_fps) {        if(dbg_fps) {
1041          double new_time = getTime();          double new_time = getTime();
1042          CurrentFPS::current_fps = 1.0/(new_time - CurrentFPS::last_time);          CurrentFPS::current_fps = 1.0/(new_time - CurrentFPS::last_time[CurrentFPS::count]);
1043          DBG(dbg_fps_cout) << "CurrentFPS: " << CurrentFPS::current_fps << "\n";          DBG(dbg_fps_cout) << "CurrentFPS: " << CurrentFPS::current_fps << "\n";
1044          CurrentFPS::last_time = new_time;          CurrentFPS::count ++;
1045            CurrentFPS::count %= CurrentFPS::NCounts;
1046            CurrentFPS::current_fps5 = CurrentFPS::NCounts *
1047                                        1.0/(new_time - CurrentFPS::last_time[CurrentFPS::count]);
1048            CurrentFPS::last_time[CurrentFPS::count] = new_time;
1049    
1050        }        }
1051                
1052    }    }

Legend:
Removed from v.1.70  
changed lines
  Added in v.1.71

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26