Fixed issues with X11 focus, improved Direct3D telemetry.

This commit is contained in:
2026-10-24 00:23:50 +02:00
parent 770bbb8a88
commit 531480b195
7 changed files with 348 additions and 82 deletions

View File

@@ -380,12 +380,19 @@ def normalized_error_message(message: str) -> str:
def _resource_usage() -> dict[str, object]:
return _environment_resource_usage(
"""Report launcher-lifetime CPU time and peak RSS, excluding the game."""
snapshot = _environment_resource_usage(
get_usage=resource.getrusage,
usage_target=resource.RUSAGE_SELF,
platform_name=sys.platform,
is_finite=math.isfinite,
)
if snapshot:
# Keep the existing numeric fields for telemetry consumers, but make
# their scope explicit even when attached to a game_exited event.
snapshot["resource_usage_scope"] = "launcher_process"
return snapshot
def error_fingerprint(