mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-02-27 04:54:15 +01:00
[dxvk] Change DXVK_PERF_EVENTS environment variable to DXVK_DEBUG
This commit is contained in:
parent
f8781e1c4c
commit
2f39ae792a
@ -124,7 +124,7 @@ The following environment variables can be used for **debugging** purposes.
|
|||||||
- `DXVK_LOG_LEVEL=none|error|warn|info|debug` Controls message logging.
|
- `DXVK_LOG_LEVEL=none|error|warn|info|debug` Controls message logging.
|
||||||
- `DXVK_LOG_PATH=/some/directory` Changes path where log files are stored. Set to `none` to disable log file creation entirely, without disabling logging.
|
- `DXVK_LOG_PATH=/some/directory` Changes path where log files are stored. Set to `none` to disable log file creation entirely, without disabling logging.
|
||||||
- `DXVK_CONFIG_FILE=/xxx/dxvk.conf` Sets path to the configuration file.
|
- `DXVK_CONFIG_FILE=/xxx/dxvk.conf` Sets path to the configuration file.
|
||||||
- `DXVK_PERF_EVENTS=1` Enables use of the VK_EXT_debug_utils extension for translating performance event markers.
|
- `DXVK_DEBUG=markers|validation` Enables use of the `VK_EXT_debug_utils` extension for translating performance event markers, or to enable Vulkan validation, respecticely.
|
||||||
|
|
||||||
## Troubleshooting
|
## Troubleshooting
|
||||||
DXVK requires threading support from your mingw-w64 build environment. If you
|
DXVK requires threading support from your mingw-w64 build environment. If you
|
||||||
|
@ -558,7 +558,7 @@
|
|||||||
# Debug Utils
|
# Debug Utils
|
||||||
#
|
#
|
||||||
# Enables debug utils as this is off by default, this enables user annotations like BeginEvent()/EndEvent().
|
# Enables debug utils as this is off by default, this enables user annotations like BeginEvent()/EndEvent().
|
||||||
# Alternatively could be enabled with DXVK_PERF_EVENTS=1 environment variable.
|
# Alternatively could be enabled with DXVK_DEBUG=markers environment variable.
|
||||||
#
|
#
|
||||||
# Supported values:
|
# Supported values:
|
||||||
# - True/False
|
# - True/False
|
||||||
|
@ -98,8 +98,7 @@ namespace dxvk {
|
|||||||
|
|
||||||
// Hide VK_EXT_debug_utils behind an environment variable. This extension
|
// Hide VK_EXT_debug_utils behind an environment variable. This extension
|
||||||
// adds additional overhead to winevulkan
|
// adds additional overhead to winevulkan
|
||||||
if ((env::getEnvVar("DXVK_PERF_EVENTS") == "1") ||
|
if ((!env::getEnvVar("DXVK_DEBUG").empty()) || (m_options.enableDebugUtils)) {
|
||||||
(m_options.enableDebugUtils)) {
|
|
||||||
insExtensionList.push_back(&insExtensions.extDebugUtils);
|
insExtensionList.push_back(&insExtensions.extDebugUtils);
|
||||||
Logger::warn("DXVK: Debug Utils are enabled, perf events are ON. May affect performance!");
|
Logger::warn("DXVK: Debug Utils are enabled, perf events are ON. May affect performance!");
|
||||||
}
|
}
|
||||||
|
@ -8,7 +8,7 @@ namespace dxvk {
|
|||||||
DxvkOptions() { }
|
DxvkOptions() { }
|
||||||
DxvkOptions(const Config& config);
|
DxvkOptions(const Config& config);
|
||||||
|
|
||||||
/// Enable debug utils (alternative to DXVK_PERF_EVENTS=1)
|
/// Enable debug utils
|
||||||
bool enableDebugUtils;
|
bool enableDebugUtils;
|
||||||
|
|
||||||
/// Enable state cache
|
/// Enable state cache
|
||||||
|
Loading…
x
Reference in New Issue
Block a user