[haiku-bugs] Re: [Haiku] #5926: Taking a screenshot of an opengl animation give you some kind of "interlaced" image

  • From: "phoudoin" <trac@xxxxxxxxxxxx>
  • Date: Mon, 10 May 2010 12:52:57 -0000

#5926: Taking a screenshot of an opengl animation give you some kind of
"interlaced" image
-----------------------------+----------------------------------------------
 Reporter:  oco              |       Owner:  korli    
     Type:  bug              |      Status:  new      
 Priority:  normal           |   Milestone:  R1       
Component:  Kits/OpenGL Kit  |     Version:  R1/alpha1
 Keywords:                   |   Blockedby:           
 Platform:  All              |    Blocking:           
-----------------------------+----------------------------------------------

Comment(by phoudoin):

 Hi/Salut Olivier,

 I guess each time the OpenGL object is in motion, right?

 My bet is, on a multi-cores system, while the screenshot is taken
 (ReadBitmap) by app_server, the next rendered frame drawing is already in
 progress, and some range of the frame buffer are committed, others not
 yet, hence the "interlaced" visual effect.

 And the more the machine support hardware parallelism, the more the issue
 is possible.

 As François once proposed, one solution could be that the screen capture
 hold the direct mode lock so no direct mode drawing could screw the
 capture meanwhile...

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/5926#comment:4>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: