From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] Raspberry Pi OpenGL/Qt5 10x slower than Raspbian
Date: Thu, 4 Aug 2016 09:17:07 +0200 [thread overview]
Message-ID: <20160804091707.6755bb66@free-electrons.com> (raw)
In-Reply-To: <CA+-urNTrCwfx4YYZ0S37wyB9ehquKLqacKaOzL6_7yCkt+Q29g@mail.gmail.com>
Hello,
On Wed, 3 Aug 2016 22:39:31 -0400, Frank Hunleth wrote:
> I'm trying to debug a 10x slow down with a simple Qt5 app that draws
> rectangles and a couple lines of text on the screen. I'm comparing the
> performance between a fresh install of Raspbian and the master branch
> of Buildroot (but I also saw this with an older BR release). I've
> narrowed the performance difference down to the rectangle and text
> drawing calls. Nothing else is running. On the Buildroot side, I'm
> using the raspberrypi_defconfig with only the following additions and
> my test app:
>
> +BR2_PACKAGE_QT5=y
> +BR2_PACKAGE_QT5BASE_LICENSE_APPROVED=y
> +BR2_PACKAGE_QT5BASE_GUI=y
> +BR2_PACKAGE_QT5BASE_WIDGETS=y
> +BR2_PACKAGE_QT5BASE_EGLFS=y
> +BR2_PACKAGE_RPI_USERLAND=y
>
> I haven't modified any of the config files in the boot partition.
> Changing the config.txt to match the Raspbian version didn't affect
> performance. I also verified that my test app is using eglfs. The
> performance degradation is the same on both a Raspberry Pi Zero and
> Model B.
>
> This slowdown seems so big that it feels like I'm forgetting some
> important piece of configuration, but I can't figure it out.
>
> Has anyone else run into this or has any ideas on things to try?
Change -Os by -O2 in the Buildroot configuration, by using
BR2_OPTIMIZE_2. I even believe we should stop using BR2_OPTIMIZE_S by
default, and switch to BR2_OPTIMIZE_2 instead.
Also, are you sure it's really using OpenGL with the Buildroot build?
Under Raspbian, are you also running the eglfs build of Qt, or is it
with X.org? I'm not sure Debian has an eglfs capable build of Qt5.
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
next prev parent reply other threads:[~2016-08-04 7:17 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-04 2:39 [Buildroot] Raspberry Pi OpenGL/Qt5 10x slower than Raspbian Frank Hunleth
2016-08-04 7:17 ` Thomas Petazzoni [this message]
2016-08-04 12:35 ` Frank Hunleth
2016-08-04 16:28 ` Thomas Petazzoni
2016-08-04 17:09 ` Frank Hunleth
2016-08-05 2:09 ` Khem Raj
2016-08-06 21:49 ` Frank Hunleth
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160804091707.6755bb66@free-electrons.com \
--to=thomas.petazzoni@free-electrons.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox