09-05-2022, 10:45 AM
(09-05-2022, 12:19 AM)Stuart Wrote:(09-04-2022, 06:28 PM)Coolman Wrote: miniaudio seems to be statically linked to the executable. i tested with a code. the size of the program generated by version 3.0.0 is about 2,8 mo while the one generated by version 3.1.0 is about 3.1 mo. that said the executable won't have any dependency on it. that's good. thank you for integrating the -no-pie option. the other additions and modifications seem interesting. great job.
I didn't test with v3.0.0, but the "old audio backend (LPGL)" wasn't changed until v3.1.0; and I can verify that it's what's slowing me down because when I choose to use the older, original backend I regain the lost 5% of time. It might even be a fraction of a percent faster.
When the option to "Use the old audio backend (LPGL)" is turned on in the Compiler Options the .exe size is now 2168 KB which is 65 KB smaller than when the new backend for audio is used (but it's still 3KB larger than the 0.8.2 version -- which is probably due to the other fixes and enhancements).
I hope that this slow down can be fixed somehow because the program I have uses very short sounds for sound events, but if it ends up costing me 5% of speed loss then the sounds will have to go and not even be available as an option...
Thanks a lot for your response @Coolman -- it did lead me in the right direction of what to check for next.
hi @Stuart. i didn't feel any slowdown in version 3.1.0 of qb64 for the sound but i didn't do a thorough test. that said qb64 has been fully compiled with the -O3 option by modifying the makefile. it would be necessary to do other tests because a difference of 5% is too important and may impact many programs...