Am Sun, 9 Jan 2011 23:17:44 +0100
schrieb Jérémy Zurcher <[email protected]>:

> Hi there,
> 
> I'm currently working on a big patch to update Sample class code and
> VeloPan usage.
> 
> I would really appreciate if some of you could review some revisions,
> especially r2054, r2057, r2062.
> 
> regards
> 

we loose some percent sampler performance in sampler.cpp. in rt functions like
__render_note_no_resample(..) ,which will become hundreds of calls each second, 
it looks like that
extra function calls eat some more time than pointer to variables. beside this 
i agree witch your
data encapsulation changes in sampler.

i only have a closer look to this because in this time i experiment with 
different
interpolation methods. for example here i replace the static inline
float linear_interpolation(..)call against a inline methode including a switch 
to return
the different inline interpolation methods. what ever the extra function-call 
eats around
two percent more time. the crazy thing is, that it is a inline method which 
exist in
header file. also i found out that without compiler optimisations like [-O3] 
the inline
functions don't work as expected, or that they are not inline compiled. there 
are about
50% performance difference between make with -O3 and without.


did you mean the VeloPan thing in sample.cpp and sample-editor. because this 
have nothing to do with adsr or other critical sampler things.
it looks that your changes in r2054, r2057, r2062 don't touch the dirty but 
uncritical velopan functions that i know.

this velopan is only in use if a sample is edited by the sample-editor and than 
only if you change the velocity or pan curve in sample editor target display.
if this happens the sample will loaded into the ram with corresponding velopan 
settings (velopan vector datas) which also will saved into a song file and 
reloaded if users load a song.

greetings wolke


------------------------------------------------------------------------------
Gaining the trust of online customers is vital for the success of any company
that requires sensitive data to be transmitted over the Web.   Learn how to 
best implement a security strategy that keeps consumers' information secure 
and instills the confidence they need to proceed with transactions.
http://p.sf.net/sfu/oracle-sfdevnl 
_______________________________________________
Hydrogen-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/hydrogen-devel

Reply via email to