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
There's no need to use a OnceLock and compute the values at first use. This also incurs overhead for synchronization.
Better to compile the table into the library.
Unfortunately, f32 operations are not const, so we should either use a build.rs script (which I strongly dislike, way too much added complexity) or use something like include_bytes and a safe transmute.
The text was updated successfully, but these errors were encountered:
This means #321 is obsolete anyway. We force pre-computation of the sine
table in control thread, and then pass a static array to the audio
processors. Hence the rendering is lock-free
Fixes#321
In retrospect, there is no overhead in the audio thread from the OnceLock because we ensure the sine table is built in the control thread, and then we hand the &'static [f32] to the renderer
There's no need to use a
OnceLock
and compute the values at first use. This also incurs overhead for synchronization.Better to compile the table into the library.
Unfortunately,
f32
operations are notconst
, so we should either use abuild.rs
script (which I strongly dislike, way too much added complexity) or use something likeinclude_bytes
and a safe transmute.The text was updated successfully, but these errors were encountered: