PhotoCraft: An open-source, photo editor written by scratch in pure Rust
gpu, docs: fix timing test skip guard and document Windows ARM64 build on RTX Spark
mweinbachee0fe906a20a
diff --git a/contributors/people.toml b/contributors/people.tomlindex bc3533777..5fd8631b9 100644--- a/contributors/people.toml+++ b/contributors/people.toml@@ -72,6 +72,9 @@ sync_github_name = true[people.maxm11]sync_github_name = true+[people.mweinbach]+sync_github_name = true+[people.skraus2]sync_github_name = truediff --git a/crates/gpu/tests/timing.rs b/crates/gpu/tests/timing.rsindex 24c205725..19ee824d8 100644--- a/crates/gpu/tests/timing.rs+++ b/crates/gpu/tests/timing.rs@@ -138,9 +138,11 @@ fn gpu_time_tracks_execution_not_submission() {assert_eq!(t.px, area(full), "the measurement carries the pixels of the refresh it measured");assert!(t.spans >= 1, "at least one command buffer was timed");- // The premise: on this adapter the refresh really is dominated by GPU execution. A machine- // fast enough that it isn't cannot tell the two timings apart, so say so instead of failing.- if wall_ms < 3.0 * submit_ms {+ // The premise: on this adapter the refresh really is dominated by GPU execution. `wall_ms`+ // includes `submit_ms`, so the GPU execution window is `wall_ms - submit_ms`; a machine fast+ // enough that this window isn't well above `3.0 * submit_ms` cannot tell the two timings+ // apart, so say so instead of failing.+ if wall_ms - submit_ms < 3.0 * submit_ms {eprintln!("SKIP the comparison: this GPU finishes a 6 MP composite in {wall_ms:.1} ms against {submit_ms:.1} ms of encoding");return;}diff --git a/docs/development.md b/docs/development.mdindex 6891e88a9..77c677d7c 100644--- a/docs/development.md+++ b/docs/development.md@@ -12,7 +12,9 @@### Windows source buildsUse the Rust MSVC toolchain and install Visual Studio or Microsoft C++ Build Tools with the-**Desktop development with C++** workload. Follow Microsoft's+**Desktop development with C++** workload (on Windows on ARM64 / `aarch64-pc-windows-msvc`, such+as NVIDIA RTX Spark, also select **C++ Clang Compiler for Windows** or ensure `clang-cl.exe` is on+`PATH`, as `aws-lc-sys` needs it to assemble ARMv8 crypto routines). Follow Microsoft's[Rust setup guide](https://learn.microsoft.com/en-us/windows/dev-environment/rust/setup),then open a new terminal and check `cargo --version` and `rustc --version`.