aboutsummaryrefslogtreecommitdiffstats
path: root/examples/alreverb.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2017-08-16 02:05:10 -0700
committerChris Robinson <[email protected]>2017-08-16 02:05:10 -0700
commit520dd5c77972cad13d1a97e228903b3c5bdc384f (patch)
tree29d72d9414d1b9d98ebcd80eab3b987eb4425279 /examples/alreverb.c
parent4dd53ab9429f0ca561dfd45f8f6022ae9871455a (diff)
Make the bsinc table layout more efficient
The old layout separated filters, scale deltas, phase deltas, and scale phase deltas into separate segments that each contained a numbers of scale and phase entries, Since processing a sample needed a filter and one of each delta entry relating to a particular scale and phase, the memory needed would be spread across the whole table. And since subsequent samples would use a different phase, it would jump around the table a whole lot as well. The new layout packs the data in a way more consistent with its use. The filters, scale deltas, phase deltas, and scale phase deltas are interleaved, such that for a particular scale and phase, the filter and delta entries used are contiguous. And the phase entries for a particular scale are kept together, so the ~500 to ~1000 samples processed per source update stay within the same 3KB to 6KB area of the 70+KB table, which is much more cache friendly.
Diffstat (limited to 'examples/alreverb.c')
0 files changed, 0 insertions, 0 deletions