From: Philipp Zabel <p.zabel@pengutronix.de>
To: LI Qingwu <Qing-wu.Li@leica-geosystems.com.cn>,
"oss-tools@pengutronix.de" <oss-tools@pengutronix.de>,
"m.felsch@pengutronix.de" <m.felsch@pengutronix.de>
Cc: GEO-CHHER-bsp-development <bsp-development.geo@leica-geosystems.com>
Subject: Re: [OSS-Tools] [PATCH platsch V5 5/5] Add spinner executable for boot animation and text show
Date: Mon, 24 Jun 2024 09:55:32 +0200 [thread overview]
Message-ID: <0c9794282528bf8d69aaebd32ec9b6e17f35fcc7.camel@pengutronix.de> (raw)
In-Reply-To: <AS8PR06MB74320ABB99C3C243CD359F20D7CB2@AS8PR06MB7432.eurprd06.prod.outlook.com>
On So, 2024-06-23 at 11:52 +0000, LI Qingwu wrote:
>
> > -----Original Message-----
> > From: Philipp Zabel <p.zabel@pengutronix.de>
> > Sent: Thursday, June 20, 2024 8:47 PM
> > To: LI Qingwu <Qing-wu.Li@leica-geosystems.com.cn>;
> > oss-tools@pengutronix.de; m.felsch@pengutronix.de
> > Cc: GEO-CHHER-bsp-development
> > <bsp-development.geo@leica-geosystems.com>
> > Subject: Re: [OSS-Tools] [PATCH platsch V5 5/5] Add spinner executable for boot
> > animation and text show
> >
> > [你通常不会收到来自 p.zabel@pengutronix.de 的电子邮件。请访问
> > https://aka.ms/LearnAboutSenderIdentification,以了解这一点为什么很重要]
> >
> > This email is not from Hexagon’s Office 365 instance. Please be careful while
> > clicking links, opening attachments, or replying to this email.
> >
> >
> > On Mi, 2024-06-19 at 12:22 +0200, LI Qingwu wrote:
> > > This commit introduces a new executable, spinner,
> > > which supports two types of animations for boot sequences:
> > > 1 static PNG and text support.
> > > 2 rotates square PNG images per frame
> > > 3 shows a sequence of square images from a strip of PNG images.
> >
> > I've tried this and the CPU load was a bit unexpected.
> >
> > I suggest clipping the background_surface->cr blits in
> > on_draw_..._animation() and and the drawing_surface->disp_cr blit in the
> > drawing loop to the minimum rectangle necessary, commented below.
>
> I just create a drawing_surface same size as the animation symbol instead of display,
> And 20fps with 800*600 display, CPU load of rotate animation goes from 16.6% to 4.3%
> And sequence animation goes from 12.3% to 0.7%
Yes, that's even better.
regards
Philipp
prev parent reply other threads:[~2024-06-24 7:55 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-19 10:22 [OSS-Tools] [PATCH platsch V5 1/5] platsch: constify draw_buffer LI Qingwu
2024-06-19 10:22 ` [OSS-Tools] [PATCH platsch V5 2/5] convert to meson build LI Qingwu
2024-06-20 12:19 ` Philipp Zabel
2024-06-23 11:46 ` LI Qingwu
2024-06-19 10:22 ` [OSS-Tools] [PATCH platsch V5 3/5] platsch: split into platsch and libplatsch LI Qingwu
2024-06-20 12:55 ` Philipp Zabel
2024-06-19 10:22 ` [OSS-Tools] [PATCH platsch V5 4/5] Platsch: always fork child process LI Qingwu
2024-06-19 10:22 ` [OSS-Tools] [PATCH platsch V5 5/5] Add spinner executable for boot animation and text show LI Qingwu
2024-06-20 12:46 ` Philipp Zabel
2024-06-23 11:52 ` LI Qingwu
2024-06-24 7:55 ` Philipp Zabel [this message]
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=0c9794282528bf8d69aaebd32ec9b6e17f35fcc7.camel@pengutronix.de \
--to=p.zabel@pengutronix.de \
--cc=Qing-wu.Li@leica-geosystems.com.cn \
--cc=bsp-development.geo@leica-geosystems.com \
--cc=m.felsch@pengutronix.de \
--cc=oss-tools@pengutronix.de \
/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