Week 10: the last Lab - TheEvergreenStateCollege/upper-division-cs-23-24 GitHub Wiki
- Starting with getting the warm game of life running in a good state before effecting changes. Took a few tries and i had to restart my shell, in a new vscode window, rebuild, use node 14, then run it to make it work (after getting it running in the AM)
I added the render.fps but ended up stuck on this:
when i comment out the fps.render(); the game returns.
I couldn't get any of the web borrower tools to work as it caused each one to stall, guessing i ran out of application memory on my mac. Here is the working fps.render()
Output of the cargo bench command:
ubuntu in upper-division-cs/sc-24sp/assignments/pswish-sc/game-of-life3/dev/game_Backup5/wasm-game-of-life at ip-172-31-1-136 on pswish-week8 [$!?] is 📦 0.1.0 via ⬢ v20.11.0 via 🦀 1.78.0 …
➜ cargo bench
Compiling proc-macro2 v1.0.82
Compiling quote v1.0.36
Compiling syn v2.0.63
Compiling wasm-bindgen-backend v0.2.92
Compiling wasm-bindgen-macro-support v0.2.92
Compiling wasm-bindgen-test-macro v0.3.42
Compiling wasm-bindgen-macro v0.2.92
Compiling wasm-bindgen v0.2.92
Compiling js-sys v0.3.69
Compiling console_error_panic_hook v0.1.7
Compiling wasm-bindgen-futures v0.4.42
Compiling wasm-bindgen-test v0.3.42
Compiling web-sys v0.3.69
Compiling wasm-game-of-life v0.1.0 (/home/ubuntu/Workspace/upper-division-cs/sc-24sp/assignments/pswish-sc/game-of-life3/dev/game_Backup5/wasm-game-of-life)
warning: `#[macro_use]` only has an effect on `extern crate` and modules
--> src/lib.rs:8:1
|
8 | #[macro_use(log)]
| ^^^^^^^^^^^^^^^^^
|
= note: `#[warn(unused_attributes)]` on by default
warning: `wasm-game-of-life` (lib test) generated 1 warning
Finished `bench` profile [optimized] target(s) in 19.76s
Running unittests src/lib.rs (target/release/deps/wasm_game_of_life-e720c58eca5d3ab4)
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s