fix: low FPS on Windows (#1279)

This commit is contained in:
Levi authored and GitHub committed 2026-02-06 22:38:31 +08:00
1 parent 969615f353
commit 6de63c3f63
1 file changed
+5
+5
View File
@@ -65,6 +65,11 @@ int APIENTRY wWinMain(_In_ HINSTANCE instance, _In_opt_ HINSTANCE prev,
flutter::DartProject project(L"data");
// TODO: Remove this.
// This forces Flutter to use a separate thread for Dart.
// This mode will be removed in a future version of Flutter.
project.set_ui_thread_policy(flutter::UIThreadPolicy::RunOnSeparateThread);
std::vector<std::string> command_line_arguments =
GetCommandLineArguments();