Merge pull request #35418 from Calinou/project-manager-viewport-usage-2d

Use a cheaper viewport usage mode in the project manager
This commit is contained in:
Rémi Verschelde 2020-01-31 10:46:47 +01:00 committed by GitHub
commit 22d4caa4bb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1900,6 +1900,8 @@ bool Main::start() {
ProgressDialog *progress_dialog = memnew(ProgressDialog);
pmanager->add_child(progress_dialog);
sml->get_root()->add_child(pmanager);
// Speed up rendering slightly by disabling 3D features while in the project manager.
sml->get_root()->set_usage(Viewport::USAGE_2D_NO_SAMPLING);
OS::get_singleton()->set_context(OS::CONTEXT_PROJECTMAN);
project_manager = true;
}