Skip to content
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

The project import file browser window is slow, becomes unusable after some time (Wayland) #74434

Open
davthedev opened this issue Mar 5, 2023 · 8 comments

Comments

@davthedev
Copy link
Contributor

Godot version

4.0-stable x86_64

System information

Ubuntu 22.04, Intel Iris Plus Graphics G7, Wayland

Issue description

The project import file browser is very slow after browsing in a couple directories.

Something must be hardworking in the background. The UI slows down significantly.

For example, selection background appears a few seconds after I click to select a file. Hover effects on the different buttons also appears with a few seconds' delay although it should be immediate.
When double-clicking to select a directory, the window is refreshed with the new browsing location contents with a few seconds' delay.

The delay increases over time. At some point, the whole thing becomes unusable.

Steps to reproduce

From the project selection window: click Import then Browse.

Click on the directories icons and notice the UI starting to slow down about a few seconds.

Minimal reproduction project

The bug happens in the project selection window. At this point, no project is loaded in the editor yet.

@Calinou
Copy link
Member

Calinou commented Mar 21, 2023

How many files and folders does the directory you're currently viewing have? Does it have a lot of files that cause thumbnails to be generated?

@davthedev
Copy link
Contributor Author

There are about 15-20 directories visible when I start browsing. The problem starts in this situation after a few seconds.
Due to the file type filter, I do not see any other files at that point. There are about 30 of them.

One interesting element I just noted : it happens under Wayland only. Under a Xorg session there is no issue.

@Calinou Calinou changed the title The project import file browser window is slow, becomes unusable after some time The project import file browser window is slow, becomes unusable after some time (Wayland) Mar 24, 2023
@Riteo
Copy link
Contributor

Riteo commented Jun 26, 2023

Under a Xorg session there is no issue.

That's because you're actually running Godot through XWayland, a compatibility layer.

I'm putting this issue in #78581. See it for more information.

@quinnyo
Copy link
Contributor

quinnyo commented Jun 30, 2023

I can't reproduce this on sway, Arch Linux - v4.0.3.stable.arch_linux - Vulkan API 1.3.246 - AMD Radeon RX 5600 XT (RADV NAVI10) (tried OpenGL as well)

The best I could do was a brief delay (a couple of frames) when I entered /usr/bin (~6000 files) with 'all files' set.
I tried list and tile mode, biggest/smallest thumbnail size, show hidden files, etc.

Do you have a project autoscan directory set? (filesystem/directories/autoscan_project_path)

@geowarin
Copy link
Contributor

geowarin commented Oct 26, 2023

I have the same issue with Gnome (Wayland) on Fedora.
Interestingly, this only happens when with the file picker used to load a library from the "Manage Animation..." window.

image

I have no problem with the project list window nor with Scene > Open Scene action 🤔

@Calinou
Copy link
Member

Calinou commented Oct 26, 2023

Interestingly, this only happens when with the file picker used to load a library from the "Manage Animation..." window.

This likely happens because you have multiple dialogs open at once in this case. You can confirm this by trying to change an editor setting that uses a file dialog (e.g. Main Font/Code Font path).

@geowarin
Copy link
Contributor

geowarin commented Oct 26, 2023

@Calinou Nope. Main Font dialog works fine...

@zerujio
Copy link

zerujio commented Nov 25, 2023

I have the same issue with Gnome (Wayland) on Fedora. Interestingly, this only happens when with the file picker used to load a library from the "Manage Animation..." window.

I have this same problem with this same specific dialog. Running Wayland on Pop_OS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants