Open calebROlson opened 3 years ago
@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 https://github.com/google/etc2comp/issues/46 and https://github.com/godotengine/godot/pull/37488 ? I noticed my callstack calls Etc::Block4x4Encoding_RG11::CalculateG11
instead of the RGB8 functions. It looks like there is still an issue in that library, and that #37488 was not the whole fix.
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.
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?).
We'd like to keep 3.x
buildable with a C++14 compiler, but this is not an issue for the master
branch which already requires a C++14 compiler.
@calebROlson Would you be interested in assistance to make this a Godot 3 pr?
Godot version
3.4 beta 4 (6a058cbf3984131f94c8680970f3c184ddecc801)
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