mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-21 05:09:46 -06:00
request repaint instead of update after each frame
This commit is contained in:
@ -275,7 +275,7 @@ EmuThread::EmuThread(QObject* parent) : QThread(parent)
|
|||||||
EmuPause = 0;
|
EmuPause = 0;
|
||||||
RunningSomething = false;
|
RunningSomething = false;
|
||||||
|
|
||||||
connect(this, SIGNAL(windowUpdate()), mainWindow->panel, SLOT(update()));
|
connect(this, SIGNAL(windowUpdate()), mainWindow->panel, SLOT(repaint()));
|
||||||
connect(this, SIGNAL(windowTitleChange(QString)), mainWindow, SLOT(onTitleUpdate(QString)));
|
connect(this, SIGNAL(windowTitleChange(QString)), mainWindow, SLOT(onTitleUpdate(QString)));
|
||||||
connect(this, SIGNAL(windowEmuStart()), mainWindow, SLOT(onEmuStart()));
|
connect(this, SIGNAL(windowEmuStart()), mainWindow, SLOT(onEmuStart()));
|
||||||
connect(this, SIGNAL(windowEmuStop()), mainWindow, SLOT(onEmuStop()));
|
connect(this, SIGNAL(windowEmuStop()), mainWindow, SLOT(onEmuStop()));
|
||||||
@ -2504,7 +2504,7 @@ void MainWindow::onUpdateVideoSettings(bool glchange)
|
|||||||
delete panelNative;
|
delete panelNative;
|
||||||
}
|
}
|
||||||
createScreenPanel();
|
createScreenPanel();
|
||||||
connect(emuThread, SIGNAL(windowUpdate()), panel, SLOT(update()));
|
connect(emuThread, SIGNAL(windowUpdate()), panel, SLOT(repaint()));
|
||||||
if (hasOGL) emuThread->initOpenGL();
|
if (hasOGL) emuThread->initOpenGL();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user