Re: frame rate control with IRIX 5.3 revisited
John Rohlf (jrohlf++at++tubes)
Tue, 21 Feb 95 10:21:00 PST
>
> Hello again,
>
> Thanks to those who replied to my plea for help. What I still don't
> understand, however, is why my application running under IRIX 4.0.5 and
> Performer 1.0 didn't exhibit the same problem. But that's not what this message
> is about. Following Jean Daigle's suggestion, I tried using
> pfPhase(PFPHASE_LIMIT). The pfFrame man page says that "PFPHASE_LIMIT is
> equivalent to PFPHASE_FREE_RUN except that the application can go no faster than
> the frame rate specified by pfFrameRate although it may go slower". This is
> exactly what I want. Also, I was under the impression that, when using
> PFPHASE_LIMIT, if the scene could not be drawn in the specified frame rate, it
> would back down to the next slower refresh rate, not the next slowest multiple
> of the specified frame rate. Unfortunately, it doesn't seem to work on my
> Indigo2. When I tried PFPHASE_LIMIT, my application behaved as if I was using
> PFPHASE_FREE_RUN. The frame rate was not being limited. at lest according to the
> pfDrawChanStats display, to my specified frame rate, either as an upper or lower
> limit. Is PFPHASE_LIMIT possibly only functional in multi processor machines?
>
> Thanks
> Jim Beaver
> Smiths Industries Aerospace - Grand Rapids
> 616-241-7671
In 1.2, LIMIT has no effect when in single process mode.
You have 2 options:
1. Run in multiprocess mode, e.g. - PFMP_APPCULL_DRAW
2. Call swapinterval(n) in your pipe initialization callback.
n is the number of retraces per frame, e.g., 3 for 20Hz.
This archive was generated by hypermail 2.0b2
on Mon Aug 10 1998 - 17:50:59 PDT