Skip to content

基于自定义规则的番剧采集APP,支持流媒体在线观看,支持弹幕,支持实时超分辨率。

feat: disable merged ui thread on windows

Predidit64db44c2c17b
diff --git a/windows/runner/main.cpp b/windows/runner/main.cpp
index b155fdaf..ae965c4a 100644
--- a/windows/runner/main.cpp
+++ b/windows/runner/main.cpp
@@ -59,6 +59,10 @@ int APIENTRY wWinMain(_In_ HINSTANCE instance, _In_opt_ HINSTANCE prev,
flutter::DartProject project(L"data");
+ // Disable thread merge to improve performance
+ // Attention: This may impact plugin performance and may be incompatible with future Flutter releases.
+ project.set_ui_thread_policy(flutter::UIThreadPolicy::RunOnSeparateThread);
+
std::vector<std::string> command_line_arguments =
GetCommandLineArguments();