Skip to content

Commit

Permalink
disable screen filtering when drawing with QT
Browse files Browse the repository at this point in the history
it can bring everything to a crawl and OpenGL display can be used as an alternative
  • Loading branch information
RSDuck committed May 6, 2023
1 parent 5f991d0 commit 758db2b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/frontend/qt_sdl/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1057,8 +1057,6 @@ void ScreenPanelNative::paintEvent(QPaintEvent* event)
memcpy(screen[1].scanLine(0), GPU::Framebuffer[frontbuf][1], 256 * 192 * 4);
emuThread->FrontBufferLock.unlock();

painter.setRenderHint(QPainter::SmoothPixmapTransform, Config::ScreenFilter != 0);

QRect screenrc(0, 0, 256, 192);

for (int i = 0; i < numScreens; i++)
Expand Down Expand Up @@ -1875,6 +1873,8 @@ void MainWindow::createScreenPanel()
}
setCentralWidget(panelWidget);

actScreenFiltering->setEnabled(hasOGL);

connect(this, SIGNAL(screenLayoutChange()), panelWidget, SLOT(onScreenLayoutChanged()));
emit screenLayoutChange();
}
Expand Down

0 comments on commit 758db2b

Please sign in to comment.