Skip to content

Commit

Permalink
Expose skip_frames as a build option
Browse files Browse the repository at this point in the history
It can be initially configured by:

    meson builddir -Dskip_frames=false

Or on an existing builddir by:

    mesonconf builddir -Dskip_frames=false
  • Loading branch information
rom1v committed Feb 15, 2018
1 parent 38e6682 commit 4288270
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -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')

Expand Down
1 change: 1 addition & 0 deletions meson_options.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 4288270

Please sign in to comment.