// Tests for video::AutoFrameRatePolicy (runtime/video/frame_rate_policy.cpp), // Frame Rate's Auto. From the repo root: // clang++ -std=c++20 -O2 -Iruntime tests/frame_rate_policy_test.cpp runtime/video/frame_rate_policy.cpp -o build/frame_rate_policy_test // build/frame_rate_policy_test [log[@:,...] ...] // Without arguments: the synthetic cases. With logs: also replays each one's // [perf] lines (120 frames each, fed as four 30-frame samples as the command // processor does) and prints the switches Auto would have made, with an // optional thermal schedule (as NFSMW_THERMAL_SIM). At 30 the replay has no // frames of its own to read: it uses the log's costs as a stand-in. A line // spanning a race's end and a menu smears both into its four samples (the // command processor's 30-frame ones would mostly be one or the other). #include