[Speex-dev] High CPU usage
mark_schilling at gmx.de
Wed Jun 13 11:41:07 PDT 2012
>Does compiling speex API with DISABLE_FLOAT_API and DISABLE_VBR solve the
I remember that this fixed the problem. But at that time I also needed VBR so this was not an option.
As far as I know, it is related to some calculations that involve float denormals that cause the high CPU usage.
Today I'm still using the following code before speex_encoder_init and erverything works great:
// fix denormals performance issue
__asm fxsave state;
memcpy(&temp, (char*)state + 24, 4);
temp |= (1 << 11); // UNDERFLOW_EXCEPTION_MASK
temp |= (1 << 15); // FTZ_BIT
__asm ldmxcsr temp;
Tested with Visual Studio 2010 on x86.
Please let me know if it works for you too.
NEU: FreePhone 3-fach-Flat mit kostenlosem Smartphone!
Jetzt informieren: http://mobile.1und1.de/?ac=OM.PW.PW003K20328T7073a
More information about the Speex-dev