From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Mon, 24 Jun 2024 09:55:36 +0200 Received: from metis.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::104]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1sLeY4-00BLnE-2Z for lore@lore.pengutronix.de; Mon, 24 Jun 2024 09:55:36 +0200 Received: from localhost ([127.0.0.1] helo=metis.whiteo.stw.pengutronix.de) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1sLeY3-00081u-Gs; Mon, 24 Jun 2024 09:55:35 +0200 Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sLeY1-00081P-KT; Mon, 24 Jun 2024 09:55:33 +0200 Received: from [2a0a:edc0:0:900:1d::4e] (helo=lupine) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sLeY0-004b8d-8H; Mon, 24 Jun 2024 09:55:32 +0200 Received: from pza by lupine with local (Exim 4.96) (envelope-from ) id 1sLeY0-00024E-0e; Mon, 24 Jun 2024 09:55:32 +0200 Message-ID: <0c9794282528bf8d69aaebd32ec9b6e17f35fcc7.camel@pengutronix.de> From: Philipp Zabel To: LI Qingwu , "oss-tools@pengutronix.de" , "m.felsch@pengutronix.de" Date: Mon, 24 Jun 2024 09:55:32 +0200 In-Reply-To: References: <20240619102227.2013556-1-Qing-wu.Li@leica-geosystems.com.cn> <20240619102227.2013556-5-Qing-wu.Li@leica-geosystems.com.cn> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.4-2 MIME-Version: 1.0 Subject: Re: [OSS-Tools] [PATCH platsch V5 5/5] Add spinner executable for boot animation and text show X-BeenThere: oss-tools@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: Pengutronix Public Open-Source-Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: GEO-CHHER-bsp-development Sender: "OSS-Tools" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: oss-tools-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false On So, 2024-06-23 at 11:52 +0000, LI Qingwu wrote: >=20 > > -----Original Message----- > > From: Philipp Zabel > > Sent: Thursday, June 20, 2024 8:47 PM > > To: LI Qingwu ; > > oss-tools@pengutronix.de; m.felsch@pengutronix.de > > Cc: GEO-CHHER-bsp-development > > > > Subject: Re: [OSS-Tools] [PATCH platsch V5 5/5] Add spinner executable = for boot > > animation and text show > >=20 > > [=E4=BD=A0=E9=80=9A=E5=B8=B8=E4=B8=8D=E4=BC=9A=E6=94=B6=E5=88=B0=E6=9D= =A5=E8=87=AA p.zabel@pengutronix.de =E7=9A=84=E7=94=B5=E5=AD=90=E9=82=AE=E4= =BB=B6=E3=80=82=E8=AF=B7=E8=AE=BF=E9=97=AE > > https://aka.ms/LearnAboutSenderIdentification=EF=BC=8C=E4=BB=A5=E4=BA= =86=E8=A7=A3=E8=BF=99=E4=B8=80=E7=82=B9=E4=B8=BA=E4=BB=80=E4=B9=88=E5=BE=88= =E9=87=8D=E8=A6=81] > >=20 > > This email is not from Hexagon=E2=80=99s Office 365 instance. Please be= careful while > > clicking links, opening attachments, or replying to this email. > >=20 > >=20 > > 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. > >=20 > > I've tried this and the CPU load was a bit unexpected. > >=20 > > I suggest clipping the background_surface->cr blits in > > on_draw_..._animation() and and the drawing_surface->disp_cr blit in th= e > > drawing loop to the minimum rectangle necessary, commented below. >=20 > 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