Read wrapped PowerShell logs in the standard-drive FPS report #71

Manually merged
github merged 1 commit from gh-pr/71/head into gh-pr/71/base 2026-11-26 11:31:58 +00:00
Owner

@⁠HandshakeHackin on GitHub · 2026-11-26 11:19 UTC · original
HandshakeHackin:fix/fps-session-powershell → main · +69 −6 · 2 files · 1 commits · merged 2026-11-26 11:29 UTC

tools/fps-session.py on current main exits with no world samples found for the Windows log attached to #31. The log is UTF-16 with a BOM, and PowerShell split the draw count and draws/frame across lines.

This reads UTF-8 and BOM-marked UTF-16, rejoins wrapped timing records up to their draw counts, and hashes the original file bytes in chunks. I independently checked the records against their timestamps. The #31 log yields 21 qualifying samples with a 1.1 fps median and fingerprint 4c238cbbeb43e50f. The unwrapped #55 log keeps all 76 samples and fingerprint 705391b7872a98c5. Its middle samples are 2.6 and 2.7 fps, so the report now prints 2.65 without floating-point display noise. These are parser checks on existing logs from different sessions.

python tools/test_fps_session.py passes, covering wrapped timestamps, both UTF-16 byte orders, UTF-8 with and without a BOM, incomplete adjacent records, the draw cutoff, and the raw file digest. No tester logs are included.

**@⁠HandshakeHackin** on GitHub · 2026-11-26 11:19 UTC · [original](https://github.com/PastiiJay/klbf-lab/pull/71) `HandshakeHackin:fix/fps-session-powershell` → `main` · +69 −6 · 2 files · 1 commits · merged 2026-11-26 11:29 UTC `tools/fps-session.py` on current `main` exits with `no world samples found` for the Windows log attached to #31. The log is UTF-16 with a BOM, and PowerShell split the draw count and `draws/frame` across lines. This reads UTF-8 and BOM-marked UTF-16, rejoins wrapped timing records up to their draw counts, and hashes the original file bytes in chunks. I independently checked the records against their timestamps. The #31 log yields 21 qualifying samples with a 1.1 fps median and fingerprint `4c238cbbeb43e50f`. The unwrapped #55 log keeps all 76 samples and fingerprint `705391b7872a98c5`. Its middle samples are 2.6 and 2.7 fps, so the report now prints 2.65 without floating-point display noise. These are parser checks on existing logs from different sessions. `python tools/test_fps_session.py` passes, covering wrapped timestamps, both UTF-16 byte orders, UTF-8 with and without a BOM, incomplete adjacent records, the draw cutoff, and the raw file digest. No tester logs are included.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 11:31:56 +00:00
github manually merged commit 4616bcd1cd into gh-pr/71/base 2026-11-26 11:31:58 +00:00
Author
Owner

@⁠PastiiJay on GitHub · 2026-11-26 11:28 UTC · original

Thanks, UTF-16 logs from PowerShell were exactly where the report fell over. We will take it together with #70.

**@⁠PastiiJay** on GitHub · 2026-11-26 11:28 UTC · [original](https://github.com/PastiiJay/klbf-lab/pull/71#issuecomment-7190780639) Thanks, UTF-16 logs from PowerShell were exactly where the report fell over. We will take it together with #70.
Author
Owner

@⁠PastiiJay on GitHub · 2026-11-26 11:34 UTC · original

Merged as well, so Windows testers can feed their PowerShell logs straight in.

**@⁠PastiiJay** on GitHub · 2026-11-26 11:34 UTC · [original](https://github.com/PastiiJay/klbf-lab/pull/71#issuecomment-7190893206) Merged as well, so Windows testers can feed their PowerShell logs straight in.
This discussion has been locked. Commenting is limited to contributors.
No description provided.