-
-
Notifications
You must be signed in to change notification settings - Fork 21.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Godot 4.1 onwards runs extremely slow on Ubuntu 22.04 #82063
Comments
Are you sure Nvidia drivers works in your "flatpak" environment? What you see in Godot Editor Output when you launch Empty project, first line there must be:
something like this, can you confirm your Godot use your Nvidia GPU? |
What I am getting from Help > Copy System Info are always one liners. Does two-lined info comes from Windows versions? For the flatpak version of 4.1.1 I got : Godot v4.1.1.stable (bd6af8e) - Freedesktop SDK 23.08 (Flatpak runtime) - Vulkan (Mobile) - dedicated NVIDIA GeForce GTX 1060 (nvidia) - Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz (8 Threads). For the standalone version from godotengine.org I got : Godot v4.1.1.stable - Ubuntu 22.04.3 LTS 22.04 - Vulkan (Compatibility) - NVIDIA GeForce GTX 1060 (nvidia; 535.86.05) - Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz (8 Threads) Both are slower than version 3.5.2 ( the LTS version). But the flatpak version takes approximately one minutes to open up a empty project while the standalone binary version takes about more than 6 minutes to do it.
How may I do this? Is there something like an option to be checked or selected in the editor's option menu? |
As per the comment, this is talking about the console when you launch it, also available in the editor output at the bottom of the editor
|
For the flatpak version it reads as : |
For the standalone version it reads:
Both runs use compatibility renderer. |
this is not Vulkan |
No, they are not. I changed to compatibility mode in hope that will reduce the time. But this hardly works, the amount of time is still roughly the same. |
I have no experienced something like this ever in Godot4, so it may be your system specific. Your system specs are more than enough to launch godot instantly, I do not know how to fix your case. |
Can you try running your project using the The output should look something like:
|
Yes. From my limited knowledge flatpak creates something similar to containers for the programs to be installed, so the original environment does not affects the flatpak apps. But I am too clueless to find the cause. |
By launching the project manager, I got:
By opening edited empty project (edits include only arbitrarily created nodes no more than ten), I got:
During the long period of opening the project, I also got these messages:
|
Is it normal to open a up a nearly empty project in approximately half a minute with my hardware? |
I have Ryzen3 3200 4 cores CPU with integrated Vega8 GPU - using integrated GPU:
took 5 sec of time opening 3d-antialiasing demo, on video 10-15 sec time 1.webm3d-antialiasing demo from https://github.com/godotengine/godot-demo-projects |
What might be the common causes of loss of speed if they are not about usb and / or GPU? |
Since standalone version 4.1.1 spends about half a minute launching project manager, I think the --verbose output might help diagnose the problem.
|
I also tried build the program from the source of 4.1.1 and the current master branch. The time spent on opening are roughly the same as the stable standalone version. Is there some ways to investigate the cause of the speed loss? |
can you try to load from some USB-linux-distro that have Nvidia drivers preinstalled, and launch Godof from there, to know this is not "your current distro problem" or install some Linux with DE and Nvidia drivers to empty space if you have - and test same |
Thanks for the suggestion, will do that. |
The speed is a lot better in the live usb systems and the newly reinstalled fedora with my same hardware now. Opening up an empty takes less than 10 second, though i think it is still a bit slow. Maybe it is because of the dual nvidia vga and integrated intel vga? |
I had this problem on Fedora, changed the system I ran Godot on (first one was Nvidia), then it worked perfectly. This is not a permanent solution though. |
Which system have you changed to? |
Ryzen 5 5600x, RX 6600 |
Hey ! Testing on Godot 4.1, and 4.2 dev6 which behaved the same.
This does not happen on the iGPU using So seems like it's related to the Intel iGPU + Vulkan specifically on my case. The game does start though. It only takes 40 seconds to do so. Cheers |
I just say - from this all iGPU Intel/AMD mess, and since "some" people running Godot4 Vulkan render in WSL or other VM - all of them may use mesa-lavapipe-llvm CPU emulation, instead of using actual GPU. And Godot4 can show "notification/warning" window when Godot running not on "physical discrete GPU", especially when used CPU-translation for Vulkan. |
I now got a much better way to reproduce the situation : Boot the laptop using Zorin Os (Core) live usb with Nvidia driver mode. Change the language / locale to Traditional Chinese (or maybe other non-English / CJK languages, I have not tried them) and then log out then log in. Then launch Godot Engine 4.1.2 stable (the stand alone version downloaded from godotengine.org), create an empty project and open that project (the locations of the program and project may or may not affect the speed, but they must be writable). Then the project will take about half a minute to open. It the language / locale is changed to English, the time takes to open empty projects drops down to around six seconds. I think the above procedure can be further simplified into this : With a Ubuntu-based system, change the language to non Latin character based ones (CJK, Thai, Georgian, Persian and so on) and then open any project. The change of speed is drastic. It gets much slower in the non-Latin character based language opening up a project. And with Latin-based ones on the other hand are much faster. So I suspects that it has something to do with the locale of the Ubuntu-based systems. |
This sounds like a shader caching issue (cache must be generated the first time the editor is opened), rather than something related to the editor language. See godotengine/godot-proposals#3657. |
Changing the language to English works pretty well for me in raising the speed, the time needed for opening a small project drops to less than 5 seconds. It take much longer time to open the same project, and such comparison can be made repeatedly. Is that shader-related too? |
If changing language to English improves the loading speed, then it's most likely the advanced text features. |
Since the cause seems to be less obscure, I think it would be better for analyzing the situation with another dedicated issue. Closing this one for now. |
Godot version
4.1 onwards (excluding flatpak versions)
System information
Godot v4.1.1.stable - Ubuntu 22.04.3 LTS 22.04 - Vulkan (Compatibility) - NVIDIA GeForce GTX 1060 (nvidia; 535.86.05) - Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz (8 Threads)
Issue description
Everything runs slow, especially project opening. It takes several minutes opening up an empty project. Switching between nodes (in said newly created empty project) costs roughly 5 seconds.
This happens in 4.2-dev5, 4.1.1, 4.1.0.
While the latest flatpak version (Godot v4.1.1.stable (bd6af8e) - Freedesktop SDK 23.08 (Flatpak runtime) - Vulkan (Compatibility) - NVIDIA GeForce GTX 1060 (nvidia) - Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz (8 Threads)) and version 4.0.4 (Godot v4.0.4.stable - Ubuntu 22.04.3 LTS 22.04 - Vulkan (Compatibility) - NVIDIA GeForce GTX 1060 (nvidia; 535.86.05) - Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz (8 Threads)) and 4.0.3 are not as slow as mentioned above, they still run fairly slow comparing to 3.5.2. The nVidia driver package is nvidia-driver-535 (Ububtu restricted source).
I'm running all these versions on my msi GP62MVR-7RFX laptop.
Steps to reproduce
Download the specific versions from godotengine.org, extract them and then run them. brief hardware and software environment information is specified in Issue Description.
Minimal reproduction project
With the specific godot versions and a newly created empty project.
The text was updated successfully, but these errors were encountered: