DadSchoorse / vkBasalt

a vulkan post processing layer for linux
zlib License
1.24k stars 52 forks source link

Building with any gcc optimization causes freeze or crash #8

Closed Sporif closed 4 years ago

Sporif commented 4 years ago

-O3 and -O2 cause a freeze that requires sshing in to kill vkcube. -O1 and -Os cause a segmentation fault. But no optimizations works fine. The builds on the release page also work without issues.

Maybe the cause is the gcc version (assuming you built it with -O3)? I'm using gcc 9.2

fluffykittyrevenge commented 4 years ago

Nice fine. Removed -O3 from src/makefile and that got my build working for vkcube with RADV and AMDVLK.

Also played a few minutes of Hitman 2 with RADV and AMDVLK and can tell that it was working since the colors seem to be more vibrant.

Edit: vkcube also works with clang-cpp as well as g++ with -march=native and -mtune=native Edit2: Hitman 2 didn't work with clang as well as vkcube looks the same as normal (it's a bit shaded when ENABLE_VKBASALT=1 is set)