• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

rm-hull / luma.core / 22732671561
99%
master: 99%

Build:
Build:
LAST BUILD BRANCH: main
DEFAULT BRANCH: master
Ran 05 Mar 2026 07:18PM UTC
Jobs 1
Files 21
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

05 Mar 2026 07:16PM UTC coverage: 99.175% (+0.002%) from 99.173%
22732671561

push

github

web-flow
perf: optimize viewport to skip redundant refreshes (#300)

* perf: optimize viewport to skip redundant refreshes

Introduces a `_dirty` flag and an optional `force` parameter to the
`viewport.refresh` method. This ensures that the underlying device's
`display` method is only invoked when content has actually changed,
reducing unnecessary I/O and CPU usage.

Changes include:
- Tracking a `_dirty` state when hotspots are removed.
- Adding a `force` flag to `refresh()` to allow explicit overrides.
- Updating `display()` and `set_position()` to trigger a forced
  refresh.
- Skipping the `device.display()` call if no redraw is required and no
  state changes are detected.

```mermaid
sequenceDiagram
    participant App
    participant Viewport
    participant Hotspot
    participant Device

    App->>Viewport: refresh(force)
    Viewport->>Hotspot: should_redraw()
    Hotspot-->>Viewport: redraw_needed

    alt force or redraw_needed or dirty
        Viewport->>Device: display(image)
        Note over Viewport: Set dirty = False
    else no changes
        Note over Viewport: Skip display update
    end
```

Fixes #280

* fscking whitespace

* chore: enable colored output in CI logs

Set environment variables to force colored output for tools and disable
the interactive `tox` spinner. This improves the readability and
cleanliness of the GitHub Actions logs.

* Revert "chore: enable colored output in CI logs"

This reverts commit f2d5e4c2d.

11 of 11 new or added lines in 1 file covered. (100.0%)

1683 of 1697 relevant lines covered (99.18%)

5.95 hits per line

Jobs
ID Job ID Ran Files Coverage
1 22732671561.1 05 Mar 2026 07:18PM UTC 21
99.18
GitHub Action Run
Source Files on build 22732671561
  • Tree
  • List 21
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 3129784e on github
  • Prev Build on main (#21569920925)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc