fps help
=?windows-1250?Q?Aleksander_Stroi=F1ski?= <[email protected]> Fri, 5 Sep 2008 12:22:18 +0200
| Newsgroups | gmane.comp.graphics.chromium.user |
|---|---|
| Message-ID | <[email protected]> |
I am running 'psubmit' demo program on one machine. i a try to measure
fps like this:
int main(){
...
for (frame = 0; ; frame++)
{
if (opt.clearFlag)
glClear( GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT );
glBarrierExecCR_ptr( MASTER_BARRIER );
glPushMatrix();
drawMyScene(frame, opt.rank);
glPopMatrix();
glBarrierExecCR_ptr( MASTER_BARRIER );
if (opt.swapFlag) {
// really swap
crSwapBuffers_ptr( window, 0 );
}
else {
// don't really swap, just mark end of frame
crSwapBuffers_ptr( window, CR_SUPPRESS_SWAP_BIT );
}
getFPS();
}
...
}
drawMyScene is empty and i get fps = 8 frame per second.... why???
how can i get higher fps?
thanks for You help!
ALEKSANDER S
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/