Compare commits

..

2 Commits

2 changed files with 4 additions and 4 deletions

View File

@@ -11,8 +11,8 @@ jobs:
steps:
- uses: actions/checkout@v2 # repo checkout
- uses: mymindstorm/setup-emsdk@v11 # setup emscripten toolchain
# with:
# version: 3.1.35
with:
version: 1.39.20
- uses: actions-rs/toolchain@v1 # get rust toolchain for wasm
with:
toolchain: stable

View File

@@ -128,9 +128,9 @@ pub fn main() {
tick_no += 1;
const PERIOD: u32 = 60 * 2;
const PERIOD: u32 = 60 * 60;
let tick_mod = tick_no % PERIOD;
if tick_mod % PERIOD == 0 || tick_no == PERIOD {
if tick_mod % PERIOD == 0 {
let average_fps = PERIOD as f32 / last_averaging_time.elapsed().as_secs_f32();
let average_sleep = sleep_time / PERIOD;
let average_process = loop_time - average_sleep;