This method unlocks the back buffer which is used for drawing graphical objects. Every call to BeginScene should eventually be followed by a call to EndScene before the display is updated with Present.
When EndScene succeeds, the scene is queued up for rendering by the driver. The method is not synchronous, so the scene is not guaranteed to have completed rendering when the method returns.