Jump to content

Vulkan - new graphics API


Recommended Posts

Postscriptum.

1.

0AD SVN Rev. 27522

Debian Bookworm

Intel Xe TGL GT2

Vulkan + Mod 0ad-spirv 0.27.13 enable

Quote

ERROR: Program 'spirv/model_common' with required defines not found.

etc.

Engine exited successfully on 2023-02-02 at 17:25:44 with 3296 message(s), 210 error(s) and 0 warning(s).

2.

0AD SVN Rev. 27519 (pyrogenesis.exe)

Windows 11

Intel Xe TGL GT2

Vulkan + Mod 0ad-spirv 0.27.13 enable

Quote

ERROR: Program 'spirv/model_common' with required defines not found.

etc.

Engine exited successfully on 2023-02-02 at 18:42:54 with 11012 message(s), 329 error(s) and 0 warning(s).

Regards.

mainlog2023-02-02_Rev_27522_vulkan_Intel-Xe-TGL-GT2_0ad-spirv_0.27.13.html.zip mainlogmainlog2023-02-02_Rev_27519_Windows-11_vulkan_Intel-Xe-TGL-GT2_0ad-spirv_0.27.13.html.zip

Link to comment
Share on other sites

Dear @vladislavbelov,

I  discovered something strange. When I enable the "fog" option in graphics(General) section, I encounter the following errors and the game does not show entities previews (for example when you try to build a house etc.), making the game nearly unplayable. Disabling the "fog" option the game shows the previews normally. Please take a look in the following screenshot and the main log file:vulkan-fog-error.png

Game build is 27523. Thanks in advance! :)

mainlog.html

Link to comment
Share on other sites

@vladislavbelov@Stan` @hyperionRegarding the appimage problem with the Vulkan backend disabled, I got this reply from one of the AppImage maintainers

 

Quote

All I can say is that AppImage does not use any form of sandboxing or virtualization by default; so it is likely a driver/library compatibility issue? Try experimenting with bundling more/less components.

 

So... no surprise there. I was able to bundle libvulkan.so into the appimage, and had the same problem. I then ran `ldd pyrogenesis | grep vulkan` and found no reference to libvulkan. How is libvulkan being referenced normally when pyrogenesis is run?

Edited by andy5995
Link to comment
Share on other sites

20 hours ago, hyperion said:

That doesn't sound like a good idea.

Downloaded the latest appimage and it ran with vulkan just fine on an amd gpu (vega 8), so which image is apparently broken?

@hyperionThe problem has been consistent with all of them so far. So far the reports have been from people (including me) on Arch-based systems. If they are using an Intel or AMD GPU, the Vulkan backend is disabled. More details on the GitHub ticket I linked above.

 

I'm glad to hear it's working for you though! Which distro are you using?

Link to comment
Share on other sites

12 hours ago, vladislavbelov said:

Could you try the new 0.27.15 version?

I tried this version on mac with moltenVK. Nothing seemed out of the ordinary until I turned texture texture quality to high. At hight texture quality, it does something like this:

(the video is from an earlier test I did)

After lowering textures back to medium/low, the glitched textures remain.

There is screen tearing when panning while using default settings. Someone told me it's not possible, but turning on vsync fixes them perfectly and results in very smooth panning.

I would say vulcan gives me an average of 10 to 15 more fps, which is impactful, but more importantly I do not get stutters or frame rate drops that I noticed frequently before.

  • Thanks 1
Link to comment
Share on other sites

On 06/02/2023 at 12:17 PM, hyperion said:

Looking at the arch wiki it says there are three drivers, me is using radv on Gentoo.

See https://wiki.archlinux.org/title/Vulkan#Switching_between_AMD_drivers if you use the closed source driver (arch default) and if switching makes a difference.

I didn't see much there about Intel, what I have on my laptop. But as I mentioned, the drivers I have installed seem to be ok. The game runs with Vulkan enabled if I use a self-built binary instead of the Ubuntu 1804 AppImage.

I'll post your suggestion on the ticket though. Thanks @hyperion

Link to comment
Share on other sites

Hello.
Up to Rev 27531 everything was fine.
From Rev. 27535 returned: "ERROR: Program 'spirv/model_common' with required defines not found."

Debian Bookworm 
0AD SVN Rev 27535 + vulkan + 0ad-spirv.zip 0.27.15
NVidia GTX 1660 + driver from nvidia.com (525.89.02).

Regards

mainlog_2023-02-11_Rev_27535_0ad-spirv_0.27.15.html

Edited by zyli
Link to comment
Share on other sites

svn rev 27535 w/ 0ad-spirv version: 0.27.15

ERROR: Program 'spirv/model_waterfall' with required defines not found.
ERROR: "ALPHABLEND_PASS_OPAQUE": "1"
ERROR: "IGNORE_LOS": "1"
ERROR: "RENDER_DEBUG_MODE": "RENDER_DEBUG_MODE_NONE"
ERROR: "USE_SHADOW_SAMPLER": "1"
ERROR: "USE_FOG": "1"
ERROR: "SHADOWS_CASCADE_COUNT": "1"
ERROR: "USE_INSTANCING": "1"
ERROR: "USE_DESCRIPTOR_INDEXING": "1"
ERROR: "USE_SHADOW": "1"
ERROR: "USE_SHADOW_PCF": "1"
ERROR: "USE_TRANSPARENT": "1"
ERROR: Failed to load shader 'spirv/model_waterfall'

 

ERROR: Program 'spirv/model_water' with required defines not found.
ERROR: "IGNORE_LOS": "1"
ERROR: "MODE_SHADOWCAST": "1"
ERROR: "PASS_SHADOWS": "1"
ERROR: "RENDER_DEBUG_MODE": "RENDER_DEBUG_MODE_NONE"
ERROR: "USE_INSTANCING": "1"
ERROR: "USE_SHADOW": "1"
ERROR: "USE_SHADOW_PCF": "1"
ERROR: "USE_SHADOW_SAMPLER": "1"
ERROR: "USE_FOG": "1"
ERROR: "USE_DESCRIPTOR_INDEXING": "1"
ERROR: "SHADOWS_CASCADE_COUNT": "1"
ERROR: "USE_NORMAL_MAP": "1"
ERROR: "USE_TRANSPARENT": "1"
ERROR: "USE_SPECULAR": "1"
ERROR: "REQUIRE_ALPHA_GEQUAL": "0.05"
ERROR: Failed to load shader 'spirv/model_water'

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...