mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 13:50:03 +00:00 
			
		
		
		
	recreate mailbox to use a queue instead
This commit is contained in:
		
							parent
							
								
									ac90cd0378
								
							
						
					
					
						commit
						52d7676831
					
				
					 7 changed files with 183 additions and 103 deletions
				
			
		|  | @ -260,9 +260,14 @@ void GRenderWindow::InitRenderTarget() { | |||
|     // TODO: One of these flags might be interesting: WA_OpaquePaintEvent, WA_NoBackground,
 | ||||
|     // WA_DontShowOnScreen, WA_DeleteOnClose
 | ||||
|     core_context = CreateSharedContext(); | ||||
|     resize(Core::kScreenTopWidth, Core::kScreenTopHeight + Core::kScreenBottomHeight); | ||||
|     BackupGeometry(); | ||||
| } | ||||
| 
 | ||||
| void GRenderWindow::initializeGL() { | ||||
|     context()->format().setSwapInterval(1); | ||||
| } | ||||
| 
 | ||||
| void GRenderWindow::CaptureScreenshot(u32 res_scale, const QString& screenshot_path) { | ||||
|     if (res_scale == 0) | ||||
|         res_scale = VideoCore::GetResolutionScaleFactor(); | ||||
|  | @ -294,7 +299,7 @@ void GRenderWindow::OnEmulationStopping() { | |||
| } | ||||
| 
 | ||||
| void GRenderWindow::paintGL() { | ||||
|     VideoCore::g_renderer->Present(); | ||||
|     VideoCore::g_renderer->TryPresent(100); | ||||
|     update(); | ||||
| } | ||||
| 
 | ||||
|  |  | |||
|  | @ -130,6 +130,7 @@ public: | |||
|     void PollEvents() override; | ||||
|     std::unique_ptr<Frontend::GraphicsContext> CreateSharedContext() const override; | ||||
| 
 | ||||
|     void initializeGL() override; | ||||
|     void paintGL() override; | ||||
| 
 | ||||
|     void BackupGeometry(); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue