mirror of
https://github.com/storytold/photocraft.git
synced 2026-11-19 09:36:56 +00:00
gpu_lock alone left a segfault in libvulkan about once in 20 runs of the ui-egui tests, even in a test holding the lock. The last wgpu instance going away tears Vulkan down, and the next one can find it half gone. Keeping one instance stops it: 16 threads creating and dropping instances with no lock crashed 8 of 8 runs, and 0 of 8 with one kept. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
22 lines
786 B
TOML
22 lines
786 B
TOML
[package]
|
|
name = "photocraft-testkit"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[dependencies]
|
|
serde_json = { workspace = true }
|
|
|
|
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
|
|
# In-process resident memory for the benchmarks (`perf`; MIT OR Apache-2.0). `always_use_statm`:
|
|
# on Linux read /proc/self/statm, not /proc/self/smaps, which walks every mapping under the mmap
|
|
# lock and made the 2 ms sampler thread a fifth of a large bench's CPU time.
|
|
memory-stats = { version = "1.2", features = ["always_use_statm"] }
|
|
|
|
[target.'cfg(target_os = "linux")'.dependencies]
|
|
# One Vulkan instance kept for the whole test process (`gpu_lock`).
|
|
wgpu = { version = "30", default-features = false, features = ["std", "vulkan"] }
|