From 9cb3261bb3cd3ac63f46536b8b5c0c68b4feea99 Mon Sep 17 00:00:00 2001 From: pineappleEA Date: Wed, 15 Feb 2023 05:08:39 +0100 Subject: [PATCH] early-access version 3402 --- README.md | 2 +- src/video_core/host1x/codecs/codec.cpp | 2 ++ src/yuzu/main.cpp | 14 +------------- 3 files changed, 4 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index c3bf4466c..299421a4a 100755 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ yuzu emulator early access ============= -This is the source code for early-access 3401. +This is the source code for early-access 3402. ## Legal Notice diff --git a/src/video_core/host1x/codecs/codec.cpp b/src/video_core/host1x/codecs/codec.cpp index fb7842f88..99b8f4464 100755 --- a/src/video_core/host1x/codecs/codec.cpp +++ b/src/video_core/host1x/codecs/codec.cpp @@ -152,6 +152,8 @@ bool Codec::CreateGpuAvDevice() { void Codec::InitializeAvCodecContext() { av_codec_ctx = avcodec_alloc_context3(av_codec); av_opt_set(av_codec_ctx->priv_data, "tune", "zerolatency", 0); + av_codec_ctx->thread_count = 0; + av_codec_ctx->thread_type &= ~FF_THREAD_FRAME; } void Codec::InitializeGpuDecoder() { diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp index 683d79645..aca304a65 100755 --- a/src/yuzu/main.cpp +++ b/src/yuzu/main.cpp @@ -3167,20 +3167,8 @@ void GMainWindow::ShowFullscreen() { window->hide(); window->setWindowFlags(window->windowFlags() | Qt::FramelessWindowHint); const auto screen_geometry = GuessCurrentScreen(window)->geometry(); - // NB: On Windows, a borderless window will be treated the same as exclusive fullscreen - // when the window geometry matches the physical dimensions of the screen. - // However, with High DPI scaling, when the devicePixelRatioF() is > 1, the borderless - // window apparently is not treated as exclusive fullscreen and functions correctly. - // One can verify and replicate this behavior by using a high resolution (4K) display, - // and switching between 100% and 200% scaling in Windows' display settings. - // At 100%, without the addition of 1, it is treated as exclusive fullscreen. - // At 200%, with or without the addition of 1, it is treated as borderless windowed. - // Therefore, we can use (read: abuse) this difference in behavior to fix this issue for - // those with higher resolution displays when the Qt scaling ratio is > 1. - // Should this behavior be changed in the future, please revisit this workaround. - const bool must_add_one = devicePixelRatioF() == 1.0f; window->setGeometry(screen_geometry.x(), screen_geometry.y(), screen_geometry.width(), - screen_geometry.height() + (must_add_one ? 1 : 0)); + screen_geometry.height() + 1); window->raise(); window->showNormal(); };