FD- / RPiPlay

An open-source AirPlay mirroring server for the Raspberry Pi. Supports iOS 9 and up.
GNU General Public License v3.0
4.96k stars 355 forks source link

Documentation clarification #89

Closed jamieburchell closed 4 years ago

jamieburchell commented 4 years ago

In the README it states:

Compile with -O3 (cmake --DCMAKE_CXX_FLAGS="-O3" --DCMAKE_C_FLAGS="-O3" ..)

What is the performance benefit from doing this and what is the full command (what is ..) ? Is this purely to speed up the compiling, or does it affect the performance of the application?

Can the apt installed components and required /opt/vc files be removed once the binary is compiled?

Thanks Jamie

FD- commented 4 years ago

-O3 is a compiler flag that produces better performing binaries at the expense of longer compile time. The complete command is what's between the parentheses. On a Pi Zero, for me it made the difference between somewhat useable audio performance and usable audio performance.

I guess you could uninstall cmake after the build, but all library dependencies (e.g libavahi and libssl) are required for running RPiPlay.

jamieburchell commented 4 years ago

Thanks for the clarification. I only just realised ".." is parent directory not an ellipsis. 🙄