Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 12 additions & 5 deletions docs/measuring_fps.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,25 @@ both sides are measured in one scene, at one cache temperature, beside the same
The same goes for every variable of section 5.
- More than eight names, or a phase of one second or less, and there is no A/B at all, again without a word. Look for
the `A/B phase` lines in the log.
- A switch named there no longer goes by its own variable. Only switches the code reads that way follow it; for any
- A plain on/off switch named there goes by the phase instead of its own variable. For a switch with a value or a list
the phase only says whether that value counts, so give the value too, in the same `-More`: without
`LEONIDA_GUARD_HOT=<ms>` or the hashes of `LEONIDA_SKIP_TRY_A` both sides are off and the A/B compares nothing with
nothing. The same goes for another switch it needs (`LEONIDA_PORT_GUARD` for `LEONIDA_GUARD_HOT`). "See the code"
under *Kind* in [switches.md](../d3d12/docs/switches.md) is a sign to look there first.
- Only switches the code reads that way follow it; for any
other name the phases are logged and nothing changes, so check the name in [switches.md](../d3d12/docs/switches.md)
or the code before you believe a "no difference".
- Not every switch may be turned in play: `findings.md` has one that ends the title (`LEONIDA_ASYNC_SUBMIT`).
- Each phase ends with a line `A/B phase <n> bits <b> on [...]`: frames, mean, median, p90, draws a frame, the card's
idle and busy time a frame and the submitting thread's work a frame. The first second of a phase is left out.

Phases of 3.5 to 4 s worked in the runs of `findings.md` (one PC, one save: "about measuring there"). The idle camera
there goes round views of about 24 s with different draw counts, so phases of 15 s measured the views, not the switch. Standing, `findings.md` cuts the phases into stretches where the draw count
jumps, leaves out the first phase of a stretch and fits a level for each stretch; walking, the switch of bit *b*
has runs of 2^*b* phases off and 2^*b* on: each pair of neighbouring runs gives one difference, and their mean is the effect. Give the effect **with its standard error**. The scripts it names for this (`ab_pair.py`, `ab_eff.py`) are not in
the repository.
there goes round views of about 24 s with different draw counts, so phases of 15 s measured the views, not the switch.

Standing, `findings.md` cuts the phases into stretches where the draw count jumps, leaves out the first phase of a
stretch and fits a level for each stretch; walking, the switch of bit *b* has runs of 2^*b* phases off and 2^*b* on:
each pair of neighbouring runs gives one difference, and their mean is the effect. Give the effect **with its standard
error**. The scripts it names for this (`ab_pair.py`, `ab_eff.py`) are not in the repository.

The standard errors in `findings.md` are mostly 0.2 to 0.6 ms for a standing run of some minutes (up to 0.94) and 1 to
2 ms for a walking one (up to 2.24). Two separate
Expand Down