Re: FPS



Hmm..  May I add some little optimization?

  int main(int argc, char **argv) {
      return main(argc, argv);
  }

should do the same thing (if at all compilable :).

Cheers,
Mishoo

On Wed, 13 Jun 2001 13:37:19 +0300
Bohdan Vlasyuk <bohdan kivc vstu vinnica ua> wrote:

On Wed, Jun 13, 2001 at 04:00:37PM +0530, Anil Kumar P - Roll No.98002
wrote:

    How many Frames per Second can i acheive using gdk_rgb.
You can achieve as many `Stack Frames per Second' as you wich, even
without using gdk_rgb. This simple funciton will help you:

int Get_SFpS() {
      return Get_SFpS();
}


int main ()
{
      return Get_SFpS();
}


How to use it -- compile, and run, count it's work time, and look for
number of stack frames in core file (using GDB), and divide latter on
former. If you'll use integer numbers, and your computer is fast, you
may even get worktime == 0, thus achieving INFINITE FPS.

Isn't is great ??


-- 
WbR


_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


-- 
/*   -*- Mishoo -*-         In the beginning there was nothing,
 *  mishoo websci ro      which exploded.   (The Big Bang Theory)  */




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]