Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

29.4. One Step Further

To be on the safe side and to make sure that the GPU has rendered everything we’ve asked, we’ll do something really radical: We’ll check the occlusion query in the next frame!

The game loop now looks something like this (for the sake of simplicity, we show just one query):


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint