Vulkan (Game Halt, Green Hog, ... whatever)? Layer.
Force anisotropy, mip LOD Bias, VSYNC and limit frame rate for Vulkan-driven games.
>0
)0
- Off, 1..16
- On)-16..16
(aka sharpen..blurry
, -1
is ok in general))0
- Off, 1
- On)0
- Off1
- Mailbox (uncapped framerate)2
- On3
- Adaptivegit clone https://github.com/LunarG/VulkanTools
cd VulkanTools
for d in assistant_layer demo_layer starter_layer; do rm -r layer_factory/$d; done
git submodule add -- https://github.com/pchome/VkGHL layer_factory/VkGHL
mkdir -p build_layer
cd build_layer
"vk_loader_platform.h"
compile-time errors)
cmake \
-DCMAKE_CXX_FLAGS="-I/usr/include/vulkan" \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/tmp/VkGHL \
-DBUILD_TESTS=OFF \
-DBUILD_LAYERSVT=OFF \
-DBUILD_VKTRACE=OFF \
-DBUILD_VIA=OFF \
-DBUILD_LAYERMGR=OFF \
-DBUILD_VKTRACE_REPLAY=OFF \
-DVULKAN_HEADERS_INSTALL_DIR=usr/ \
-DVULKAN_LOADER_INSTALL_DIR=usr/ \
-DVULKAN_VALIDATIONLAYERS_INSTALL_DIR=usr/ \
..
make
build_layer32
name and -DCMAKE_CXX_FLAGS="-m32 -I/usr/include/vulkan"
)cd layers
MIPLODBIAS=-1 \
AF=16 \
RETRO=1 \
VSYNC=0 \
FPS=150.55 \
DXVK_HUD=1 \
VK_LAYER_PATH=. \
VK_INSTANCE_LAYERS="VK_LAYER_LUNARG_VkGHL" \
wine d3d11-triangle.exe
In such cases you can ommit VK_LAYER_PATH=
environment variable.
Install *.so
files into directory visible via LD_LIBRARY_PATH=
.
System
/usr/lib/libVkLayer_VkGHL.so
/usr/lib64/libVkLayer_VkGHL.so
/usr/share/vulkan/explicit_layer.d/VkLayer_VkGHL.json
User (add LD_LIBRARY_PATH="${HOME}/.local/lib64:${HOME}/.local/lib"
to your env)
~/.local/lib/libVkLayer_VkGHL.so
~/.local/lib64/libVkLayer_VkGHL.so
~/.local/share/vulkan/explicit_layer.d/VkLayer_VkGHL.json
The Vulkan Configurator is a graphical application that allows a user to specify which layers will be loaded by Vulkan applications at runtime. It provides an alternative to setting layers through environment variables or an application's layer selection. In addition, it allows using layers from non-standard locations, selecting the ordering for implicit layers, and specifying settings for layers that Vulkan Configurator supports.
Currently mimics libstrangle behaviour and env vars (UPPERCASE ones). This may change in future.