Frando / rust-faust

Easily use FAUST DSPs in Rust
Apache License 2.0
52 stars 11 forks source link

[wip] Flush denormals to zero on supported cpus #13

Closed Jikstra closed 2 years ago

Jikstra commented 2 years ago

improve performance in some cases

sletz commented 2 years ago

Where is enable_flush_denormals_to_zero actually used ? Is housed be added in the process code, before the call to compute.

Jikstra commented 2 years ago

Where is enable_flush_denormals_to_zero actually used ? Is housed be added in the process code, before the call to compute.

One has to call it manually. We are not really parsing the faust code, we are just embedding it with simple search/replace.

sletz commented 2 years ago

But you could add the enable_flush_denormals_to_zerocall in the architecture file , just before calling compute. We routinely do that in audio code with C++.

sletz commented 2 years ago

In update_and_compute maybe ?