From 42882702d7107a44a8ce67a4c0aa91dce8fd4382 Mon Sep 17 00:00:00 2001 From: Romain Vimont Date: Thu, 15 Feb 2018 11:23:14 +0100 Subject: [PATCH] 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 --- app/meson.build | 2 +- meson_options.txt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/meson.build b/app/meson.build index 4503a0cb..e81130bd 100644 --- a/app/meson.build +++ b/app/meson.build @@ -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') diff --git a/meson_options.txt b/meson_options.txt index eb33a01a..cd840fb5 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -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)