Skip to content

Commit

Permalink
neptune3: Force to run as single process for rpi
Browse files Browse the repository at this point in the history
With neptune3, multiple applications in neptune ui
runs as separate processes. On rpi this causes some
performance issues since it doesn't have a very good
GPU. This causes a very low frame rate as well as
issues with correct rendering of the applications.
A workaround is added which runs neptune3 ui as a
single process.

This is a temporary workaround until a solution is
provided in neptune for this issue.

Signed-off-by: Tariq Ansari <[email protected]>
(cherry picked from commit 1f81027)
  • Loading branch information
TSAnsari authored and sashko committed Mar 20, 2019
1 parent 9ee9159 commit 2d08e17
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion layers/b2qt/recipes-qt/automotive/neptune3-ui_git.bbappend
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ RDEPENDS_${PN}_append = "\
"

HAS_CONTAINMENT = "${@bb.utils.contains('DISTRO_FEATURES', 'process-containment', '-c /opt/am/sc-config.yaml', '', d)}"
FORCE_SINGLE_PROCESS = "${@bb.utils.contains('MACHINE', 'raspberrypi3', ' --force-single-process', '', d)}"

#
# Add software-container AM config to appman cmdline if we have containment support
Expand All @@ -21,7 +22,7 @@ do_install_prepend() {
git lfs pull
cd -

sed -i -e "s|\$EXTRA_ARGUMENTS|${HAS_CONTAINMENT}|" ${WORKDIR}/neptune.service
sed -i -e "s|\$EXTRA_ARGUMENTS|${HAS_CONTAINMENT}${FORCE_SINGLE_PROCESS}|" ${WORKDIR}/neptune.service
}

#
Expand Down

0 comments on commit 2d08e17

Please sign in to comment.