diff options
| author | DadaCap <167002618+DadaCap@users.noreply.github.com> | 2026-11-25 09:46:06 +0100 |
|---|---|---|
| committer | DadaCap <167002618+DadaCap@users.noreply.github.com> | 2026-11-25 09:46:06 +0100 |
| commit | abe3f204294248840466afae979b534cad7b6369 (patch) | |
| tree | 8a8ed5f21278c8c8bd82bd7da9eb3c880ee47627 /runtime/test/tiny_game_exit_code_test.cpp | |
| parent | 237deb64ce2b567283f304b7b89a23152e7b60c0 (diff) | |
d3d12: the every-byte hash of a mapped title texture reads write-combined memory through a streaming copy (RT-TITLE-HASH-WC-STREAM)
refresh_title_textures hashes every byte of a mapped texture of up to 4 MiB each sixth pass, straight from the
title's pages. In a real boot those pages are write-combined, where ordinary loads are not cached: on the intro one
such hash took 36 ms on average and up to 78 ms, so every sixth pass cost one to two frames and the title presented
24 frames a second where it paces itself for 30. The bytes now come through copy_guarded's streaming copy, as the
fill of the same texture already does, and the copy is hashed: 0.4 to 1.1 ms.
The test places a mapped plane in ordinary and in write-combined pages and changes one byte the sampled hash does not
cover.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Diffstat (limited to 'runtime/test/tiny_game_exit_code_test.cpp')
0 files changed, 0 insertions, 0 deletions