Does pfFrame a busy wait?

New Message Reply Date view Thread view Subject view Author view

From: Yves Strube (czys++at++ocag.ch)
Date: 07/09/2001 08:42:36


Hi,

I am using Performer in a program which consist of multiple processes
and use a locked frame rate. Performer runs in only one of these
processes. The processes use real-time priorities so that the process
with the highest priority runs whenever it wants to run.
When I call pfFrame to perform the CULL and DRAW stages, processes with
a lower priority than the Performer process are no longer executed until
the vertical retrace is detected by Performer. So Performer does a busy
wait for the vertical retrace.
My work around performs a sleep before calling pfFrame to give the other
processes some time. This works pretty fine but it steals Performer some
time which it may need to render when more complex parts of the scene
are displayed.
However the sleep work around is pretty ugly and I would like to know if
anyone has a better solution?

I am using Performer 2.4 with Linux Kernel 2.2.18. The former Performer
version did *not* perform a busy wait but I would prefer to stay with
2.4.

----------
Oerlikon-Contraves AG
Yves Strube, S-EMI
Birchstr. 155 Email: czys++at++ocag.ch
CH-8050 Zurich Phone: +41 1 316 2675
Switzerland Fax: +41 1 316 2032


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Mon Jul 09 2001 - 08:38:54 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.