Open mcmara opened 2 years ago
Does this also happen with sdl_vulkan example? This is Unity(X11), right?
Yes, same: Some info on the desktop:
10:02 xxx@yyy-yyy-yyy ~ $ screenfetch
./+o+- xxx@yyy-yyy-yyy
yyyyy- -yyyyyy+ OS: Ubuntu 20.04 focal
://+//////-yyyyyyo Kernel: x86_64 Linux 5.11.0-38-generic
.++ .:/++++++/-.+sss/` Uptime: 1d 18h 43m
.:++o: /++++++++/:--:/- Packages: 1708
o:+o+:++.`..```.-/oo+++++/ Shell: bash 5.0.17
.:+o:+o/. `+sssoo+/ Resolution: 1280x1452
.++/+:+oo+o:` /sssooo. DE: GNOME 3.36.5
/+++//+:`oo+o /::--:. WM: Mutter
\+/+o+++`o++o ++////. WM Theme: Adwaita
.++.o+++oo+:` /dddhhh. GTK Theme: Yaru [GTK2/3]
.+.o+oo:. `oddhhhh+ Icon Theme: Yaru
\+.++o+o``-````.:ohdhhhhh+ Font: Ubuntu 11
`:o+++ `ohhhhhhhhyo++os: Disk: 1.4T / 2.0T (71%)
.o:`.syhhhhhhh/.oo++o` CPU: Intel Core i9-9980HK @ 8x 2.4GHz
/osyyyyyyo++ooo+++/ GPU: VMware SVGA II Adapter
````` +oo+++o\: RAM: 1407MiB / 16010MiB
`oo++.
As you can see, this is a VMware (testing) environment. However, I just tried the same (GLFW+Vulkan) on an actual physical system (DELL laptop + Ubuntu 20.04) and everything is fine, as it was in macOS. It could hence be VirtualBox creating the strange issue (HW acceleration is enabled). Considering that, I'm now not sure if we should care about VirtualBox.
Oh its a VM.. Virtual machines are quite bad at graphics. Only half-decent graphics support is provided by vmware for windows guests on a windows host. Anything else is a varying degree of 💩. Nothing we can do about that.. These samples of course work properly here on bare-metal (plasma x11 desktop).
Version: 1.85 Branch: tag v1.85 (55d35d83) Back-ends: imgui_impl_glfw.cpp + imgui_impl_vulkan.cpp Compiler: gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0 Operating System: Ubuntu 20.04
It seems that the viewport is clipped to the window dimensions at startup. Here it is what happens when resizing (enlarging) the window: This is obtained by simply building the example in examples/example_glfw_vulkan. Interesting thing is that the same example works correctly under macOS (using LunarG SDK), with no resizing issues. Any idea why this happens only in Linux?