Hallo!
I implemented a static getFramerate Method in GemMan now, so it's possible to query the framerate.
Can someone commit this into CVS ? (diffs attached)
Thanks, LG Georg
10,11c10,11 < // Copyright (c) Gï¿œnther Geiger. < // Copyright (c) 2001-2002 IOhannes m zmoelnig. forum::fï¿œr::umlï¿œute ---
// Copyright (c) Günther Geiger. // Copyright (c) 2001-2002 IOhannes m zmoelnig. forum::für::umläute
100d99 < double GemMan::s_deltime = 50.; 111a111
static double s_deltime = 50.;
1503,1511d1502 < // get Framerate < // < ///////////////////////////////////////////////////////// < float GemMan :: getFramerate() < { < return (s_deltime != 0.0) ? (1000. / s_deltime) : 0.0; < } < < ///////////////////////////////////////////////////////// 1645c1636 < post("frame rate: %f", getFramerate() ); ---
post("frame rate: %f", (0.0 != s_deltime) ? 1000. / s_deltime : 0.0);
9,10c9,10 < Copyright (c) Gï¿œnther Geiger. geiger@epy.co.at < Copyright (c) 2001-2002 IOhannes m zmoelnig. forum::fï¿œr::umlï¿œute. IEM. zmoelnig@iem.kug.ac.at ---
Copyright (c) Günther Geiger. geiger@epy.co.at Copyright (c) 2001-2002 IOhannes m zmoelnig. forum::für::umläute. IEM. zmoelnig@iem.kug.ac.at
127,130d126 < // Get the frame rate < static float getFramerate(); < < ////////// 244,245d239 < < static double s_deltime;