From a0382a1d2a494ff9ff5533e9b9662da832ed0a8c Mon Sep 17 00:00:00 2001 From: xkeyC <3334969096@qq.com> Date: Sun, 23 Nov 2025 13:06:40 +0800 Subject: [PATCH] fix: fps down --- windows/runner/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/windows/runner/main.cpp b/windows/runner/main.cpp index f8453d2..3f7e1c5 100644 --- a/windows/runner/main.cpp +++ b/windows/runner/main.cpp @@ -23,7 +23,7 @@ int APIENTRY wWinMain(_In_ HINSTANCE instance, _In_opt_ HINSTANCE prev, GetCommandLineArguments(); project.set_dart_entrypoint_arguments(std::move(command_line_arguments)); - + project.set_ui_thread_policy(flutter::UIThreadPolicy::RunOnSeparateThread); FlutterWindow window(project); Win32Window::Point origin(0, 0); Win32Window::Size size(1280, 720);