mirror of
https://github.com/doitsujin/dxvk.git
synced 2024-11-29 01:24:11 +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_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_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
|
||||
DXVK requires threading support from your mingw-w64 build environment. If you
|
||||
|
@ -558,7 +558,7 @@
|
||||
# Debug Utils
|
||||
#
|
||||
# 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:
|
||||
# - True/False
|
||||
|
@ -98,8 +98,7 @@ namespace dxvk {
|
||||
|
||||
// Hide VK_EXT_debug_utils behind an environment variable. This extension
|
||||
// adds additional overhead to winevulkan
|
||||
if ((env::getEnvVar("DXVK_PERF_EVENTS") == "1") ||
|
||||
(m_options.enableDebugUtils)) {
|
||||
if ((!env::getEnvVar("DXVK_DEBUG").empty()) || (m_options.enableDebugUtils)) {
|
||||
insExtensionList.push_back(&insExtensions.extDebugUtils);
|
||||
Logger::warn("DXVK: Debug Utils are enabled, perf events are ON. May affect performance!");
|
||||
}
|
||||
|
@ -8,7 +8,7 @@ namespace dxvk {
|
||||
DxvkOptions() { }
|
||||
DxvkOptions(const Config& config);
|
||||
|
||||
/// Enable debug utils (alternative to DXVK_PERF_EVENTS=1)
|
||||
/// Enable debug utils
|
||||
bool enableDebugUtils;
|
||||
|
||||
/// Enable state cache
|
||||
|
Loading…
Reference in New Issue
Block a user