upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/src/pe_loader.cpp
diff options
context:
space:
mode:
authorYaBulochka <yabulochka@users.noreply.github.com>2026-11-24 00:47:45 +0300
committerYaBulochka <yabulochka@users.noreply.github.com>2026-11-24 00:48:42 +0300
commit88797f3ebdf89be12ab59db1bf69ca00a86d97e1 (patch)
tree6a49e399a43511bfdb75c91cd8c449a8c4146671 /runtime/src/pe_loader.cpp
parent5d74c272363f2703265d44e6aaab1a1df8ddfaf3 (diff)
d3d12: LEONIDA_CAPTURE writes the presented frames to disk
A question that keeps coming back on the boot path is "what is actually on screen", and the window is not a reliable answer: under Wine it is not mapped at all, and even on Windows a compositor or a capture-blocked surface can hide the content. The presenter already copies every presented frame into a staging buffer when capture is enabled, so this adds the disk side: `LEONIDA_CAPTURE=<dir>` writes each captured frame as a binary PPM and appends the extent and the mean RGB to `<dir>/index.txt`, with `LEONIDA_CAPTURE_EVERY` and `LEONIDA_CAPTURE_LIMIT` bounding the run. Off unless set, and created with the folder if it is missing. The write happens on the fence that already covers the copy, so the present path is untouched. d3d12_present_test turns it on and checks the files against the colour the test clears to: at least half the captured frames (it resizes and injects failures on purpose, so a frame caught mid-transition is a near miss), and no frame black. A capture that reads the wrong or a stale buffer fails there instead of in a report months later.
Diffstat (limited to 'runtime/src/pe_loader.cpp')
0 files changed, 0 insertions, 0 deletions