Sync in non-graphical app.

New Message Reply Date view Thread view Subject view Author view

Scott Herod (herod++at++evt.com)
Fri, 22 Jan 1999 11:44:00 -0700


I am trying to get a simple test script working that
needs to run at the current display frame rate. A note
at the end of the pfSync man page makes a reference to doing
this. Could someone please suggest what, in addition to
the following, I need to do.

  pfInit();
  pfMultiprocess( PFMP_DEFAULT );
  pfConfig();
  pfPipe *p = pfGetPipe(0);
  p->setScreen(0);
  .....
  while (1) {
    // Do our thing
    ...
    pfSync();
    pfFrame();
  }

I have tried actually opening a pfPipeWindow, but I
found that the size of the blank window effects how fast I
pass through the while loop. Performer does report that I
am running at 59Hz.

Thank you,
Scott Herod
scott++at++evt.com


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Fri Jan 22 1999 - 10:44:28 PST

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