home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / sys / sgi / graphics / 70 < prev    next >
Encoding:
Text File  |  1992-12-30  |  1.8 KB  |  48 lines

  1. Newsgroups: comp.sys.sgi.graphics
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!hobbes.physics.uiowa.edu!news.uiowa.edu!news
  3. From: randy@caesar.iaf.uiowa.edu (randy frank)
  4. Subject: A quick swapbuffers question...
  5. Message-ID: <1992Dec30.163152.22459@news.uiowa.edu>
  6. Sender: Randy Frank
  7. Date: Wed, 30 Dec 1992 16:31:52 GMT
  8. Distribution: usa
  9. Nntp-Posting-Host: caesar.iaf.uiowa.edu
  10. Organization: University of Iowa, Image Analysis Facility
  11. Keywords: swapbuffers
  12. Lines: 34
  13.  
  14. Hello,
  15.     A quick question about the behavior of the swapbuffers() call
  16. that just came up around here.  Does swapbuffers() actually block the
  17. current process at the point where swapbuffers() is called in the 
  18. code until the next screen refresh right after swapbuffers() is called,
  19. or is the process blocking deferred until the next GL call is made?
  20.  
  21.     In the specific case in question:
  22.  
  23.     /* draw the scene */
  24.     (some GL graphics code)
  25.     swapbuffers();
  26.     /* do some more work */
  27.     (some non-graphics code)
  28.  
  29.     In one application it appears that some of the non-graphics
  30. code may be getting executed when the swapbuffers() call should be
  31. blocking the process for the next screen refresh.  Note: I cannot
  32. verify this problem completely, it just seems like this may be the
  33. case.
  34.     Could the optimizer be reordering the code so the non-graphics code
  35. is executed before the swapbuffers() call?
  36.     Does swapbuffers() not actually block until another GL call is made
  37. (thus the non-graphics code is executed before the process must block)?
  38.  
  39. BTW: The machines in question are r3k Entry and Elan Indigos running
  40.     4.0.1 and 4.0.2 respectively.
  41.  
  42. Thanks in advance,
  43. --
  44. rjf.
  45. Randy Frank, Engineer                       |  (319) 335-6712       
  46. University of Iowa, Image Analysis Facility |  73 EMRB              
  47. randy@tessa.iaf.uiowa.edu                   |  Iowa City, IA 52242  
  48.