You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-11 13:10:58 +00:00
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.
This commit is contained in:
@@ -1900,6 +1900,8 @@ bool Main::start() {
|
|||||||
ProgressDialog *progress_dialog = memnew(ProgressDialog);
|
ProgressDialog *progress_dialog = memnew(ProgressDialog);
|
||||||
pmanager->add_child(progress_dialog);
|
pmanager->add_child(progress_dialog);
|
||||||
sml->get_root()->add_child(pmanager);
|
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);
|
OS::get_singleton()->set_context(OS::CONTEXT_PROJECTMAN);
|
||||||
project_manager = true;
|
project_manager = true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user