// SpeedBreaker tests. GPL-3.0-or-later (see COPYING). // // The one-time refresh-rate notice (video/refresh_notice.h): when it shows (the // display rates, variable refresh, Game Mode, a Mac's ProMotion or fixed // external screen, a headset, already dismissed, NFSMW_REFRESH_NOTICE, and the // moment: settled rate, past start-up, not loading, the controls idle, no other // panel, no movie); what it says on each platform; the grid check it rests on // (RefreshFit::SetGridHz: a fixed 90/143.9/144/165 Hz display taken, variable // refresh never); and the dismissal in settings.toml ([app] refresh_notices, // user/settings.cpp as the game links it), in a scratch folder (the argument). // // Build by hand (from the repo root): // c++ -std=c++20 -O2 -UNDEBUG -I runtime tests/refresh_notice_test.cpp runtime/video/refresh_fit.cpp \ // runtime/user/settings.cpp -o build/refresh_notice_test // build/refresh_notice_test build/refresh_notice_scratch #include #include