-
-
Notifications
You must be signed in to change notification settings - Fork 21.2k
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
Hanging when importing PNG with etc/etc2 VRAM compression enabled [etc2comp bug] #51930
Comments
@calebROlson Does this occur in 3.3.2 or 3.3.3? |
It does not occur in 3.3.3 or 3.4 beta 3. Only seems to happen with the beta 4, both the dev snapshot and one I built myself with Visual Studio 2019. |
I'm seeing this on 3.3.3 stable now. This is not a regression from 3.4beta3 (it is present in 3.3.3). Sometimes the operation finishes eventually, and other times it hangs until I force restart Godot. Once the import succeeds, I don't see the issue again until I re-import. I am running the 64-bit versions. Seems similar to google/etc2comp#46 and #37488 ? I noticed my callstack calls I am running GLES3. etc 2 is "only supported when using the GLES3 renderer". I was able to workaround by disabling etc2 vram compression in the project settings for each affected release. |
I found a fork of etc2comp (https://github.com/abergmeier/etc2comp) which has numerous fixes, including threaded executor support. After a few tweaks, I was able to build it with 3.3.3 and this fixed the issue for me and my textures imported in a couple seconds. However, the maintainer uses c++17 and I needed to switch my SConstruct file to use that instead of c++14 (is there a downside to doing this?). I will attach my patch file for reference. |
We'd like to keep |
@calebROlson Would you be interested in assistance to make this a Godot 3 pr? |
Godot version
3.4 beta 4 (6a058cb)
System information
Windows 10
Issue description
Importing a png with import settings as follows leads to hang (using Qodot clip texture as an example):
I ran MSVC profiler which has the following info:
I suspect this has to do with this change from #51402.
Setting
flags/anisotropic=false
orflags/mipmaps=false
does not fix the hang.Steps to reproduce
Import png with above import definition on Godot 3.4 beta 4 using etc/etc2 compression. Godot will hang at re-importing assets pop-up.
Minimal reproduction project
vram-compression-hang.zip
The text was updated successfully, but these errors were encountered: