Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Studio Chat / Vulkan and Linux

Author
Message
Pfaber1
6
Years of Service
User Offline
Joined: 7th Jan 2018
Location: England
Posted: 14th May 2021 12:03
Been trying to use Vulkan on Linux mint 20.1 and it will not run . If I use "prefer Best" it still won't run but if I use "Basic" no problem . Linux mint is built on Ubuntu and is compatible with it. Any thoughts on this ?
theblackbones
5
Years of Service
User Offline
Joined: 31st Jan 2019
Location: France
Posted: 16th May 2021 21:55
Hello,
Same issue for me.
Laptop i5 - 2 GPUs Nvidia1650/Intel with dual system Linux/Windows.
On Manjaro or Mint/Ubuntu : Advanced & Prefer Best don't run ! so I use Basic in Tier1.
On Windows, all run ... but more slower than Linux !!!!

maybe a problem with driver, mesa under linux ... or not.

One question to tier2 users : if it's possible, how choose renderer in tier 2 ?

thanks.

PartTimeCoder
AGK Tool Maker
9
Years of Service
User Offline
Joined: 9th Mar 2015
Location: London UK
Posted: 17th May 2021 01:46
Quote: "One question to tier2 users : if it's possible, how choose renderer in tier 2 ?"


in Core.cpp, inside function _tWinMain at the bottom of the file in call to agk::InitGraphics, set AGK_RENDERER_MODE_PREFER_BEST (Vulkan then OpenGL) or AGK_RENDERER_MODE_ONLY_LOWEST (OpenGL)
MadBit
VIP Member
Gold Codemaster
14
Years of Service
User Offline
Joined: 25th Jun 2009
Location: Germany
Posted: 17th May 2021 07:29
Remember that under linux you need to install the proprietary graphics card drivers to get the best performance out of it.
Especially when it comes to Vulkan support.
I don't know if you have already done that.
Share your knowledge. It\'s a way to achieve immortality. (Tenzin Gyatso)
Pfaber1
6
Years of Service
User Offline
Joined: 7th Jan 2018
Location: England
Posted: 17th May 2021 10:39 Edited at: 17th May 2021 10:50
The test I did was to move a cube from 1 side of the screen to the other at full screen. I'm away from my computer at the moment but will replicate the test later and we shall see. I set the frame rate to 500 in both studio and classic. Classic produced about 150 fps whereas studio was about 400. The cube was set in a continuous loop. I will carry out the test with vulkan and openGL.
Does this sound like a viable way to test.
Pfaber1
6
Years of Service
User Offline
Joined: 7th Jan 2018
Location: England
Posted: 17th May 2021 10:48
Dose this sound like a viable way to test?
theblackbones
5
Years of Service
User Offline
Joined: 31st Jan 2019
Location: France
Posted: 17th May 2021 11:10
Quote: "in Core.cpp, inside function _tWinMain at the bottom of the file in call to agk::InitGraphics, set AGK_RENDERER_MODE_PREFER_BEST (Vulkan then OpenGL) or AGK_RENDERER_MODE_ONLY_LOWEST (OpenGL)"


Thanks PartTimeCoder.
theblackbones
5
Years of Service
User Offline
Joined: 31st Jan 2019
Location: France
Posted: 17th May 2021 13:22
Pfaber1, if you have a Nvidia GPU, here is the solution that works for me.
you build your prog with #renderer "Advanced"
and you run it in terminal with : __NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia ./TheNameOfYourProg
Et voilĂ  !


theblackbones
5
Years of Service
User Offline
Joined: 31st Jan 2019
Location: France
Posted: 17th May 2021 13:34
And the last but not the least, in your terminal in agk folder...
__NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia ./AgkStudio64
you run studio with vulkan activated and you launch your prog under basic, advanced and prefer best, as you want.
Pfaber1
6
Years of Service
User Offline
Joined: 7th Jan 2018
Location: England
Posted: 18th May 2021 10:21
Unfortunately no Nvidia I have Intel UHD intergreated..

Login to post a reply

Server time is: 2024-04-25 01:24:50
Your offset time is: 2024-04-25 01:24:50