mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 13:50:03 +00:00 
			
		
		
		
	Change Present to finish only after swap
This commit is contained in:
		
							parent
							
								
									6fff8e3921
								
							
						
					
					
						commit
						ac90cd0378
					
				
					 6 changed files with 20 additions and 1 deletions
				
			
		|  | @ -34,6 +34,9 @@ public: | |||
|     /// Draws the latest frame to the window (Renderer specific implementation)
 | ||||
|     virtual void Present() = 0; | ||||
| 
 | ||||
|     /// Marks the presentation buffer as complete and swaps it back into the pool
 | ||||
|     virtual void PresentComplete() = 0; | ||||
| 
 | ||||
|     /// Prepares for video dumping (e.g. create necessary buffers, etc)
 | ||||
|     virtual void PrepareVideoDumping() = 0; | ||||
| 
 | ||||
|  |  | |||
|  | @ -794,6 +794,9 @@ void RendererOpenGL::Present() { | |||
|     /* insert fence for the main thread to block on */ | ||||
|     frame.present_sync = glFenceSync(GL_SYNC_GPU_COMMANDS_COMPLETE, 0); | ||||
|     glFlush(); | ||||
| } | ||||
| 
 | ||||
| void RendererOpenGL::PresentComplete() { | ||||
|     render_window.mailbox->PresentationComplete(); | ||||
| } | ||||
| 
 | ||||
|  |  | |||
|  | @ -60,6 +60,9 @@ public: | |||
|     /// context
 | ||||
|     void Present() override; | ||||
| 
 | ||||
|     /// Finializes the presentation and sets up the presentation frame to go back into the mailbox
 | ||||
|     void PresentComplete() override; | ||||
| 
 | ||||
|     /// Prepares for video dumping (e.g. create necessary buffers, etc)
 | ||||
|     void PrepareVideoDumping() override; | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue