Page 1 of 2

Warzone 2100 vulkan build

PostPosted: 01 Oct 2017, 21:15
by Vincent
Hi,

I'm generating build of my vulkan branch on appveyor (for Windows only atm) so that people can test it.
There are know bug and limitation:
  • VSync is always on.
  • Anisotropic filtering is always enabled (at 16x) as well as trilinear filtering.
  • No MSAA (I'm planning to implement post processing so I'm likely to leave it unimplemented before PP in order not to write a code that will disappear later.
  • There is a crash when leaving warzone 2100 if console text has been printed (WzText destructor is not called when wz is closed)
  • Some tooltip are replaced by a black box.

I'm interested in report about crashes and visual glitches I didn't spot.
To run the build you'll need qt5 and qtscript installed and accessible from your path (I need to include the dlls in the cmake based installer) and vulkan sdk (so that the debug layer is enabled).
Performance wise the debug layer is crippling fps so don't expect good numbers.

Here is the link :

https://ci.appveyor.com/project/vlj/war ... /artifacts

Re: Warzone 2100 vulkan build

PostPosted: 01 Oct 2017, 21:24
by Vincent
BTW GL is disabled in this build so wz2100 can launch, it will use Vulkan.

Re: Warzone 2100 vulkan build

PostPosted: 07 Oct 2017, 13:27
by Vincent
Current build includes Qt5 libs now.

Re: Warzone 2100 vulkan build

PostPosted: 08 Oct 2017, 12:43
by MaNGusT
Still asks for it.
Image

Re: Warzone 2100 vulkan build

PostPosted: 08 Oct 2017, 19:48
by Vincent
oops sorry, forgot the plugin, should be fixed now

Re: Warzone 2100 vulkan build

PostPosted: 11 Oct 2017, 21:54
by xShadow421x
Greetings,

So far I have noticed various images/icons are blacked out.
For example, the incompatible version icon seen in the mp lobby I've marked with red arrows: Image
Additional examples in this spoiler tag:
Spoiler:

Other than that, everything else in the menus appear OK and functions as expected. Although, if the game itself is supposed to be able to run, it crashes for me; so I haven't been able to test anything else.
These are the only errors in the terminal and the logs don't provide anything else: Image

Re: Warzone 2100 vulkan build

PostPosted: 12 Oct 2017, 21:47
by Vincent
Both issues should be fixed. BTW to run Vulkan you need to pass the --vulkan flag now otherwise GL is used.

Re: Warzone 2100 vulkan build

PostPosted: 15 Oct 2017, 22:14
by Vincent
I think I fixed all gfx issues I found in the vulkan backend (I could play several campaign mission on Intel HD), more testing appreciated.

Re: Warzone 2100 vulkan build

PostPosted: 17 Oct 2017, 05:11
by xShadow421x
Most if not everything so far looks normal and I haven't noticed any major issues or crashed yet, so good work so far.
I've only really found a couple minor things, but I'm not sure if it's related to vulkan. Just in case it is or if you're curious, when I loaded a new game/mission, the images used as backdrops tend to disappear to black and reappear during the loading phases. Also anything that uses a sprite animation goes through the frames slower than usual (things like explosions, smoke, the steam on top of the factory, etc). Another minor detail, which you can see it in the second image below; the progress bars overlap the research/manufacturing timers. That's about it until I have time to look at it more, but there doesn't seem to be any glaring issues.

One thing though, I played a skirmish game and noticed a weird glitch that makes all the 3D objects in the menus disappear like this:
Image Image.
Unfortunately I can't figure out a reliable way to reproduce that, so I don't yet know if it happens on its own or if I'm causing it. Everything returns to normal after about a minute if I close the menus though.

Re: Warzone 2100 vulkan build

PostPosted: 17 Oct 2017, 20:17
by Terminator
Black decals or terrain textures & flickering building platforms.
And savegame doesn't work

Re: Warzone 2100 vulkan build

PostPosted: 17 Oct 2017, 22:18
by Vincent
Was there a regression concerning savegame lately ?

Re: Warzone 2100 vulkan build

PostPosted: 18 Oct 2017, 01:39
by moltengear
Terminator wrote:Black decals or terrain textures & flickering building platforms.
And savegame doesn't work


The call to render these terrain textures is in the src/texture.cpp.

There is another long-standing rendering error.
I'm studying the source. I can't understand what happened to the shadows on the objects.
I see only the shadows cast from the objects on the landscape. Everything was fine in version 3.1.5.

Re: Warzone 2100 vulkan build

PostPosted: 18 Oct 2017, 06:29
by Vincent
It's an issue in rendering order, shadow are rendered before objects and not terrain.

Re: Warzone 2100 vulkan build

PostPosted: 18 Oct 2017, 21:21
by xShadow421x
Terminator wrote:Black decals or terrain textures & flickering building platforms...

Are you running the game with Vulkan or the default GL? I don't see stuff like that unless I run the game without Vulkan enabled.

Re: Warzone 2100 vulkan build

PostPosted: 18 Oct 2017, 22:44
by Terminator
xShadow421x wrote:Are you running the game with Vulkan or the default GL? I don't see stuff like that unless I run the game without Vulkan enabled.


Man you are right. I'm noob, have forgot to add --vulkan to shortcut. Visualy, fine, but a little noticed,
1) if zoom camera too close to terrain, in menus all models in these are disappears.
2) progress bars hovering a remaining time.
less relevant * 3) in horizon line when moving camera - gliching artifacts.

upd: saves dont work at all. On openGL backend - I've saved the game, but on vulkan I cant do that at all. Loading game dont work on both.