View Full Version : swapbuffer, call in second thread ??
04-03-2002, 05:27 PM
in windows2000, i found the swapbuffer..
are called not in main thread but another
i need to be notified when
the swaping operation complete.
so i can continue render new frame
how can i???
I think the nice way is to make a boolean variable true or false.
I mean when u start drawing set
bRendering = TRUE
& when rendering is complete set
bRendering = FALSE
define & declare this variable as
volatile BOOL bRendering=TRUE;
call swap buffers if rendering is FALSE otherwise don't call it. Thats it
04-03-2002, 08:40 PM
i just wanna to know when the rending
complete. see the following codes:
when call glDrawSomething2(..), i
need be sure the Swapbuffers(hdc) has
complete. because the SwapBuffers(hdc)
call a new thread to copy backbuffer to
front buffer, so i don't know when it
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.