mirror of
https://github.com/GopeedLab/gopeed.git
synced 2026-11-05 16:15:43 +00:00
fix: low FPS on Windows (#1279)
This commit is contained in:
1 file changed
+5
@@ -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();
|
||||
|
||||
|
||||
Reference in new issue
Block a user