[libcamera-devel] libcamera built with -O0? (& swisp performance)

Bryan O'Donoghue bryan.odonoghue at linaro.org
Fri Dec 15 01:43:36 CET 2023


On 14/12/2023 19:16, Pavel Machek wrote:
> Hi!
> 
> Is libcamera built with -O0 for debug builds? That would certainly
> explain bad swisp performance.
> 
> Normal build:
> 
> -c c++ -Isrc/libcamera/libcamera.so.0.1.0.p -Isrc/libcamera
>   -I../src/libcamera -Iinclude -I../include
> ...
>   -O0 -g -Wshadow -include /my/libcamera/build/config.h -fPIC
>   -DYAML_DECLARE_STATIC -D_CRT_SECURE_NO_WARNINGS
>   src/libcamera/libcamera.so.0.1.0.p/pipeline_rpi_vc4_vc4.cpp.o.d -o
>   src/libcamera/libcamera.so.0.1.0.p/pipeline_rpi_vc4_vc4.cpp.o -c
>   ../src/libcamera/pipeline/rpi/vc4/vc4.cpp
> 
> meson setup --buildtype=release -Dpipelines=simple/simple -Dipas=simple/simple build/
> 
> Gets libraries built with -O3, AFAICT.
> 
> Bryan, for the performance regression, can you try the
> buildtype=release? Code will not perform well at -O0.
> 
> Thanks and best regards,
> 							Pavel

30fps, 60% usage still looks too pink


More information about the libcamera-devel mailing list