Hi,

On Tue, 2004-03-30 at 17:14, Manfred Weiler wrote:
> Hi
> 
> > > I am making a routine for measuring the framerate in an opensg 
> > > application . 
> > > For that I needed to have a time-measuring tool which can measure the 
> > > time precisely . 
> > >
> > > Does someone know any libraries/function/class for this . 
> > > Also if someone has earlier done anything like that I will be glad if he 
> > > can help me .
> > 
> > depends a little bit on your operating system ;-), for windows there is
> > getPerfCounter and getPerfCounterFreq found in OSGTime.h which should be
> > pretty ok. If you need a different OS please let me know and I see if I 
> > can add it.
> 
> I'm a little surprised that this functionality isn't part of the core
> OSG library since timings should be one of the first things in comparing
> OSG to other scenegraphs. 

well yes and no, for frame times most of the normal timers are ok, and
at the time I did most of my fine grained timings I used Windows, that's
why there the performaceCounter is implemented. Sometimes the problem is
that this code is so small that you are tempt to use it without ever
integrating it properly. Otherwise you often revert to profilers before
actually adding your own timing code.

> BTW. Isn't the StatisticForeground doing some measurements as well?
> How does this work?

I guess just the normal system time.

regards,
  gerrit




-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to