Build without game data / build (windows-x64, windows-2022) (push) Canceled after 0s
Build without game data / build (macos-arm64, macos-14) (push) Canceled after 0s
Build without game data / build (linux-x64, ubuntu-24.04) (push) Canceled after 0s
Prepare release packages / build (push) Canceled after 0s
Prepare release packages / draft (push) Canceled after 0s
14 lines
490 B
C++
14 lines
490 B
C++
// SPDX-License-Identifier: GPL-3.0-only
|
|
#pragma once
|
|
#include <cstdint>
|
|
|
|
namespace bmh::ui {
|
|
// Saved column-nine delays are source timer units. Values below six use
|
|
// integer halving; zero genuinely disables the pause.
|
|
constexpr uint32_t live_delay_milliseconds(uint8_t saved) {
|
|
return uint32_t(saved < 6 ? saved / 2 : saved) * 20;
|
|
}
|
|
// VGA mode 13h timing is independent of the host monitor's refresh rate.
|
|
inline constexpr unsigned kOriginalRefreshHz = 70;
|
|
} // namespace bmh::ui
|