w23 / xash3d-fwgs

Vulkan Ray Tracing fork of Xash3D FWGS engine. Intended to be merged into master at some point in the future.
160 stars 16 forks source link

More precise control over logs verbosity at startup #691

Open w23 opened 5 months ago

w23 commented 5 months ago

Currently -vkverboselogs enables verbose logs for all ref_vk modules. Having too many logs is often inconvenient.

We'd use cvars for per-module log control, but cvars are loaded too late.

What we can do is use environment variables to list modules for which verbose logs should be enabled. E.g.: XASH_REF_VK_LOGS=mat,tex,patch

w23 commented 5 months ago

Just use vk_debug_log "mat,tex" in e.g. valve/autoexec.cfg you dummy. No need to mess with env vars.

w23 commented 5 months ago

autoexec.cfg is still too late. ref_vk initialization happens before it is read.

What can be done: