Post Reply 
DB48X: HP48-like RPL implementation for DM42
10-18-2023, 05:56 AM (This post was last modified: 10-18-2023 05:56 AM by c3d.)
Post: #135
RE: DB48X: HP48-like RPL implementation for DM42
(10-12-2023 03:49 PM)spiff72 Wrote:  After seeing this comment regarding animations, it occurred to me that maybe enabling the seconds display on the status bar might trigger better blinky behavior, and I can confirm that it does - at least at first. If you leave it alone while there is an active command line present, it blinks about once per second at first, but then transitions to once every 3 seconds or so. Then after a bit longer, it just stops blinking entirely (and the seconds stops updating on the status bar).

I normally don't care to include the seconds in the status bar because it seems like overkill on a calculator and it probably uses a little extra battery juice over the long term.

What you see is the behaviour adopted to make sure that animations in general do not draw too much juice. The interval between animations decreases sharply over time:
  • Initially, the refresh period is determined by the fastest necessary animation, see below
  • After 10s, updates are every 3s
  • After 1min, update every 10s
  • After 3min, update every minute

The animations refresh periods are:
  • 0.2s for menus on USB, 0.85s on battery
  • 0.5s for the cursor (but there is a bug there ATM)
  • 2s for battery voltage
  • 1s or 1 minute for clock depending on settings

With this in place, I expect battery usage to be only very marginally increased by animations. Screen redraws have also been carefully optimized, so that only the parts that need a refresh are redrawn.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: DB48X: HP48-like RPL implementation for DM42 - c3d - 10-18-2023 05:56 AM
DB48X v0.4.8 is out - c3d - 10-22-2023, 11:31 PM
Release v0.5.0: Statistics and flags - c3d - 11-20-2023, 08:57 AM
v0.6.5: Minor bug fixes - c3d - 02-11-2024, 11:23 PM
Release 0.7.1 "Whip" - Bug fixes - c3d - 03-04-2024, 12:46 AM
DB48X v0.7.4 release is out - c3d - 04-14-2024, 03:05 PM
DB48X v0.7.6: Solving menu - c3d - Yesterday, 12:04 AM



User(s) browsing this thread: 3 Guest(s)