<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to 7: FPS counting; several windows.</title><link>https://sourceforge.net/p/openglean/feature-requests/7/</link><description>Recent changes to 7: FPS counting; several windows.</description><atom:link href="https://sourceforge.net/p/openglean/feature-requests/7/feed.rss" rel="self"/><language>en</language><lastBuildDate>Wed, 30 Mar 2005 05:18:19 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/openglean/feature-requests/7/feed.rss" rel="self" type="application/rss+xml"/><item><title>FPS counting; several windows.</title><link>https://sourceforge.net/p/openglean/feature-requests/7/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Currently, the GLUT_FPS environment variable causes&lt;br /&gt;
OpenGLEAN to compute frames-per-second based on the&lt;br /&gt;
total number of redisplay events your application&lt;br /&gt;
handles---for all of your windows.  This can render it&lt;br /&gt;
fairly meaningless.&lt;/p&gt;
&lt;p&gt;Nigel Stewart thinks that this is a priority 7 issue&lt;br /&gt;
for OpenGLUT.&lt;/p&gt;
&lt;p&gt;After posting the initial RFE for OpenGLUT, I am less&lt;br /&gt;
and less convinced that this is desirable, but I post&lt;br /&gt;
it here for rumination.&lt;/p&gt;
&lt;p&gt;The advantage: It would be nice to know the current&lt;br /&gt;
frame rate in a more meaningful sense.&lt;/p&gt;
&lt;p&gt;The disadvantages: GLUT_FPS only provides information&lt;br /&gt;
on {stdout} or {stderr}.  To output info about every&lt;br /&gt;
window's FPS would spam the output.  We could, of&lt;br /&gt;
course, add a glutGet(GLUT_WINDOW_FPS) or a&lt;br /&gt;
glutGet(GLUT_WINDOW_FRAMES) to ask how well a particular&lt;br /&gt;
window is doing.  But the client can do their own fps&lt;br /&gt;
computations...&lt;/p&gt;
&lt;p&gt;Especially if we can get a more accurate timer than&lt;br /&gt;
1ms (or sometimes 10ms, on WIN32?), it would be very&lt;br /&gt;
nice to start a window's FPS at 0, and then everytime&lt;br /&gt;
the window is about to be updated:&lt;/p&gt;
&lt;p&gt;* Get the start time.&lt;br /&gt;
* Call the client redisplay callback.&lt;br /&gt;
* Get the finish time.&lt;br /&gt;
* total_time = finish - start;&lt;br /&gt;
* window-&amp;gt;fps += 1/(total_time * timer_granularity);&lt;br /&gt;
* window-&amp;gt;fps /= 2;&lt;/p&gt;
&lt;p&gt;Whether or not GLUT_FPS should be aware of this, though,&lt;br /&gt;
I am not sure.  GLUT_FPS is a fairly crude tool...&lt;/p&gt;
&lt;p&gt;Now, seen as a glutGet()able value, I've talked myself&lt;br /&gt;
back into thinking that this is a feasible thing.&lt;br /&gt;
Maybe I'll do an API proposal...&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Richard Rauch</dc:creator><pubDate>Wed, 30 Mar 2005 05:18:19 -0000</pubDate><guid>https://sourceforge.net4f30bd3a22281a8c56518d07bd852d231da99c7f</guid></item></channel></rss>