You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
num-traits = { version = "0.2.15", default-features = false, features = ["libm"] }
glam = { version = ">=0.22, <=0.24", default-features = false, features = ["libm"] }
it was slowing down my cpu code by 3x, specifically the glam Vec3::distance.
it's really bad because new users might enable it in the shaders crate within the workspace early in development, without realizing the impact in performance.
Possible solution:
spirv-std crate should only enable libm for spirv target in Cargo.toml
The text was updated successfully, but these errors were encountered:
rust-gpu/crates/spirv-std/Cargo.toml
Lines 14 to 15 in 1a9c8b8
it was slowing down my cpu code by 3x, specifically the glam Vec3::distance.
it's really bad because new users might enable it in the shaders crate within the workspace early in development, without realizing the impact in performance.
Possible solution:
spirv-std crate should only enable libm for spirv target in Cargo.toml
The text was updated successfully, but these errors were encountered: