Hi, Am Donnerstag, 25. März 2010 16:46:35 schrieb Stefan Fendt: > While it's trivial to change the filter-coeffs to doubles (as modern > machines do all fp-stuff in doubles and just cast to floats afterwards > this should even give a little speed-boost) in > ./includes/basic_filters.h, I wonder what would be needed to do the same > for the internal sample-format... > > I see that ./include/lmms_basics.h defines this: > > typedef float sample_t; // standard sample-type > > But if I just change it, I get a bunch of compiler-errors for > "sample_buffer.cpp" due to hard-coded floats instead of sampe_t's ... > > Just in case I fix that, what other "happy" side-effects would the > change of sample_t from float to double imply? We discussed about that 2 years ago or so. AFAIR there was no clear result so we left things as they were. Changing internal processing sample format to double definitely would be nice if it does not introduce performance regressions (whichI fear due to double data rate and thus less CPU cache efficiency). I'd like to see you providing a nice patch for that and make some benchmarks and/or send the patch to this list, so other people can test it. If the benchmark results convince, we'll apply the patch.
Toby
signature.asc
Description: This is a digitally signed message part.
------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev
_______________________________________________ LMMS-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/lmms-devel
