mirror of
https://github.com/Genymobile/scrcpy
synced 2025-01-21 07:20:45 +00:00
Expose skip_frames as a build option
It can be initially configured by: meson builddir -Dskip_frames=false Or on an existing builddir by: mesonconf builddir -Dskip_frames=false
This commit is contained in:
parent
38e6682875
commit
42882702d7
@ -74,7 +74,7 @@ conf.set('DEFAULT_BIT_RATE', '4000000') # 4Mbps
|
||||
# whether the app should always display the most recent available frame, even
|
||||
# if the previous one has not been displayed
|
||||
# SKIP_FRAMES improves latency at the cost of framerate
|
||||
conf.set('SKIP_FRAMES', true)
|
||||
conf.set('SKIP_FRAMES', get_option('skip_frames'))
|
||||
|
||||
configure_file(configuration: conf, output: 'config.h')
|
||||
|
||||
|
@ -2,3 +2,4 @@ option('build_app', type: 'boolean', value: true)
|
||||
option('build_server', type: 'boolean', value: true)
|
||||
option('prebuilt_server', type: 'string')
|
||||
option('override_server_jar', type: 'string')
|
||||
option('skip_frames', type: 'boolean', value: true)
|
||||
|
Loading…
Reference in New Issue
Block a user