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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue