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

mlange-42 / arche-model / 6698858792
98%

Build:
DEFAULT BRANCH: main
Ran 30 Oct 2023 09:20PM CUT
Jobs 1
Files 16
Run time 1s
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

30 Oct 2023 09:19PM CUT coverage: 98.208% (+0.8%) from 97.455%
6698858792

push

github

web-flow
Fix full CPU load when paused (#47)

As reported in mlange-42/arche#304, systems spin at maximum speed when paused.

This PR fixes the issue by calculating the theoretical next update time even when paused (assuming 30 TPS). Also, UI system update logic needs to be performed even when there are no UI systems.

Fixes mlange-42/arche#304

Changes:

* prevent paused spinning by still calculating next update
* add a test for pausing the model/Systems
* limit FPS/TPS when paused
* execute UI system update logic also when there are no UI systems
* update changelog

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

548 of 558 relevant lines covered (98.21%)

124.11 hits per line

Jobs
ID Job ID Ran Files Coverage
1 6698858792.1 30 Oct 2023 09:20PM CUT 16
98.21
GitHub Action Run
Source Files on build 6698858792
  • Tree
  • List 16
  • Changed 3
  • Source Changed 1
  • Coverage Changed 1
Loading...
Coverage∆FileLinesRelevantCoveredMissedHits/Line
85.29
reporter/csv.go76 34 29 5 21.0
86.84
reporter/csv_snaphot.go83 38 33 5 33.0
100.0
model/systems.go349 + 10201 + 8201 + 120 - 4310.0 + 30
100.0
model/time_unix.go10 2 2 0 2.0
100.0
model/util.go15 10 10 0 134.0 + 103
100.0
observer/grid_to_layers.go73 39 39 0 2.0
100.0
observer/layers_to_layers.go63 34 34 0 1.0
100.0
observer/matrix_to_grid.go63 35 35 0 6.0
100.0
observer/matrix_to_layers.go62 33 33 0 4.0
100.0
observer/row_to_table.go37 18 18 0 1.0
Showing 1 to 10 of 16 entries
  • Previous
  • 1
  • 2
  • Next
  • ►
    100.0
    model/
  • ►
    100.0
    observer/
  • ►
    88.24
    reporter/
  • ►
    100.0
    system/
  • Back to Repo
  • Github Actions Build #6698858792
  • d2becaf4 on github
  • Prev Build on main (#5114593779)
  • Next Build on main (#6783430383)
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

© 2025 Coveralls, Inc