mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-12-05 12:35:42 +00:00
fix(game-debug): show vkd3d-proton warnings in game debug logs
This commit is contained in:
1 parent
77fffa7592
commit
3113ea7ad7
3 files changed
+6
-3
No files matched your search
@@ -117,7 +117,7 @@ the UI shows a restart reminder instead of enabling logs that would be discarded
|
||||
| `PROTON_LOG` | `1` |
|
||||
| `PROTON_LOG_DIR`, `PROTON_CRASH_REPORT_DIR`, `DXVK_LOG_PATH` | The actual session log directory |
|
||||
| `DXVK_LOG_LEVEL` | `debug` |
|
||||
| `VKD3D_DEBUG` | `info` |
|
||||
| `VKD3D_DEBUG`, `VKD3D_SHADER_DEBUG` | `warn` |
|
||||
| `WINEDEBUG` | Valid custom channels plus Proton's standard diagnostic channels |
|
||||
|
||||
Diagnostics take precedence over conflicting inherited, shared, or per-game log
|
||||
|
||||
@@ -69,7 +69,8 @@ def apply_game_debug_logs(env, config=None, debug_dir=None):
|
||||
"PROTON_CRASH_REPORT_DIR": debug_dir,
|
||||
"DXVK_LOG_PATH": debug_dir,
|
||||
"DXVK_LOG_LEVEL": "debug",
|
||||
"VKD3D_DEBUG": "info",
|
||||
"VKD3D_DEBUG": "warn",
|
||||
"VKD3D_SHADER_DEBUG": "warn",
|
||||
"WINEDEBUG": game_debug_channels(env.get("WINEDEBUG"), env.get("PROTON_LOG")),
|
||||
})
|
||||
return result
|
||||
|
||||
@@ -699,6 +699,7 @@ class GameDebugLoggingTest(unittest.TestCase):
|
||||
inherited = {"DD_DEBUG_DIR": debug_dir, "PROTON_LOG": "0", "WINEDEBUG": "-all,+relay",
|
||||
"PROTON_LOG_DIR": "/old", "PROTON_CRASH_REPORT_DIR": "/old-crashes",
|
||||
"DXVK_LOG_PATH": "/old-dxvk", "DXVK_LOG_LEVEL": "none", "VKD3D_DEBUG": "none",
|
||||
"VKD3D_SHADER_DEBUG": "none",
|
||||
"CUSTOM": "$(touch never); 'quoted' = literal", "DXVK_CONFIG": "dxvk.tearFree = True"}
|
||||
config = {"version": 1, "gameDebugLogs": True,
|
||||
"shared": {"PROTON_LOG": "0", "DD_DEBUG_DIR": "/profile-redirect"},
|
||||
@@ -709,7 +710,8 @@ class GameDebugLoggingTest(unittest.TestCase):
|
||||
for key in ("PROTON_LOG_DIR", "PROTON_CRASH_REPORT_DIR", "DXVK_LOG_PATH"):
|
||||
self.assertEqual(debug[key], debug_dir)
|
||||
self.assertEqual(debug["DXVK_LOG_LEVEL"], "debug")
|
||||
self.assertEqual(debug["VKD3D_DEBUG"], "info")
|
||||
self.assertEqual(debug["VKD3D_DEBUG"], "warn")
|
||||
self.assertEqual(debug["VKD3D_SHADER_DEBUG"], "warn")
|
||||
self.assertIn("+relay", debug["WINEDEBUG"].split(","))
|
||||
self.assertTrue(debug["WINEDEBUG"].endswith("+loaddll,+mscoree"))
|
||||
for key in ("CUSTOM", "DXVK_CONFIG", "DD_DEBUG_DIR"):
|
||||
|
||||
Reference in new issue
Block a user