diff options
author | Hugo Locurcio <hugo.locurcio@hugo.pro> | 2020-01-21 22:47:38 +0100 |
---|---|---|
committer | Hugo Locurcio <hugo.locurcio@hugo.pro> | 2020-01-21 22:47:38 +0100 |
commit | 1e2118ea22a67db6c5acdcbc9989250ca13c5836 (patch) | |
tree | 264baee16871b0c64eb51329d5dbd78a93f072bf /main | |
parent | 6190690757ca322393f13e44bc2ceed79b362b45 (diff) |
Use a cheaper viewport usage mode in the project manager
This should speed up rendering slightly. While the project manager
is hardly demanding, this may help on high refresh-rate displays
or very slow machines.
Diffstat (limited to 'main')
-rw-r--r-- | main/main.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/main/main.cpp b/main/main.cpp index 0ff392978a..d6766193df 100644 --- a/main/main.cpp +++ b/main/main.cpp @@ -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; } |