Vulkan support

For code related discussions and questions
User avatar
Berg
Regular
Regular
Posts: 2202
Joined: 02 Sep 2007, 23:25
Location: Australia

Re: Vulkan support

Post by Berg » 14 Jul 2019, 00:00

Thank you pastdue Keep up the good work!

User avatar
moltengear
Trained
Trained
Posts: 147
Joined: 22 Jul 2017, 15:05

Re: Vulkan support

Post by moltengear » 17 Jul 2019, 10:01

A new version of Raspberry PI has been released.
Most likely for the new gpu they will release a vulkan api.

https://forums.wz2100.net/viewtopic.php?f=30&t=15172
Compressed texture patterns of models (units, structures) are displayed correctly.
But with compressed landscape textures, textures with an alpha channel are not displayed correctly, unlike version 3.1.5.
For me, this is a mystery.
But even so it was possible to reduce the download time of the beginning of the battle.
And also increase the FPS, which favorably affects the delay in multiplayer on weak machines.
We can use compressed textures only to the models at this stage.

I think it makes no sense to implement the lighting, but just take what Nvidia offers.
hardware lighting is always better than software in terms of speed. Other manufacturers will sometime implement hardware lighting anyway.

User avatar
Berserk Cyborg
Code contributor
Code contributor
Posts: 822
Joined: 26 Sep 2016, 19:56

Re: Vulkan support

Post by Berserk Cyborg » 24 Jul 2019, 04:36

Setup the Vulkan sdk and all that on my Ubuntu-mate 19.04 install. Was successfully able to compile your latest branch and tested it a few times. At least the Vulkan backend doesn't get all laggy in fullscreen mode like it did for me with Windows, though maybe that is because I compiled Warzone myself. Runs smooth for both backends.

That upload assert can happen with the OpenGL backend too:

Code: Select all

info    |21:07:52: [upload:242] Attempt to upload to buffer more than once per frame
info    |21:07:52: [upload:242] Assert in Warzone: ../lib/ivis_opengl/gfx_api_gl.cpp:242 (lastUploaded_FrameNum != current_FrameNum), last script event: '<none>'
I think it can be triggered by viewing the research in the intelligence screen as well.

Per
Warzone 2100 Team Member
Warzone 2100 Team Member
Posts: 3775
Joined: 03 Aug 2006, 19:39

Re: Vulkan support

Post by Per » 20 Aug 2019, 23:33

Interesting. Do you have a git branch for this work?

User avatar
Berserk Cyborg
Code contributor
Code contributor
Posts: 822
Joined: 26 Sep 2016, 19:56

Re: Vulkan support

Post by Berserk Cyborg » 21 Aug 2019, 00:15

Per wrote:
20 Aug 2019, 23:33
Interesting. Do you have a git branch for this work?
Follow pastdue's latest gfx_api branches. I know version 12 works as that was the last iteration I tried.

Post Reply