Thread View: comp.sys.sgi.graphics
2 messages
2 total messages
Started by randy frank
Wed, 30 Dec 1992 16:31
A quick swapbuffers question...
Author: randy frank
Date: Wed, 30 Dec 1992 16:31
Date: Wed, 30 Dec 1992 16:31
34 lines
1871 bytes
1871 bytes
Hello, A quick question about the behavior of the swapbuffers() call that just came up around here. Does swapbuffers() actually block the current process at the point where swapbuffers() is called in the code until the next screen refresh right after swapbuffers() is called, or is the process blocking deferred until the next GL call is made? In the specific case in question: /* draw the scene */ (some GL graphics code) swapbuffers(); /* do some more work */ (some non-graphics code) In one application it appears that some of the non-graphics code may be getting executed when the swapbuffers() call should be blocking the process for the next screen refresh. Note: I cannot verify this problem completely, it just seems like this may be the case. Could the optimizer be reordering the code so the non-graphics code is executed before the swapbuffers() call? Does swapbuffers() not actually block until another GL call is made (thus the non-graphics code is executed before the process must block)? BTW: The machines in question are r3k Entry and Elan Indigos running 4.0.1 and 4.0.2 respectively. Thanks in advance, -- rjf. Randy Frank, Engineer | (319) 335-6712 University of Iowa, Image Analysis Facility | 73 EMRB randy@tessa.iaf.uiowa.edu | Iowa City, IA 52242
Re: A quick swapbuffers question...
Author: Kurt Akeley
Date: Wed, 30 Dec 1992 18:22
Date: Wed, 30 Dec 1992 18:22
9 lines
864 bytes
864 bytes
-- I believe that process blocking occurs only when a GL call is made to the same GL context after swapbuffers() is called. Thus a single process can render and swap multiple windows at the full frame rate, but will stall if it attempts to render to a window that has been posted for a swap, but not yet swapped. -- Kurt Akeley kurt@sgi.com (415) 390-3612 M/S 7U-550
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads