Commit Graph
4 Commits
Author SHA1 Message Date
erikbrockoandClaude Sonnet 5.5 7a728af469 Keep long refreshes out of the way of typing
Tracing key presses with eight windows open and a busy feed showed the
UI thread running 36 tasks of 8 ms or more in 25 seconds (up to 93 ms),
nearly all of them the Available window replacing its grid rows. A key
pressed meanwhile waits for the task.

- OperatorActivity records the last key press. The Available, Score,
  Telnet, Grayline and Statistics refreshes wait until there has been
  no key press for 800 ms.
- Bandmap no longer holds its lock while it works out spot lifetimes or
  spot keys, so the entry window's lookups do not wait on it.
- The bandmap view stops drawing labels pushed below its edge.

Tasks of 8 ms or more dropped from 36 (1,259 ms in all) to 8 (205 ms).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-25 14:10:47 +00:00
erikbrockoandClaude Sonnet 5.5 fe70f9b058 Cut CPU use and move heavy work off the UI thread
Redraws:
- Merge bursts of session and bandmap events into one redraw
  (Coalesced). Closed Bandmap and Available windows now unsubscribe.
- Grayline and Voice Keyer no longer subscribe to the session twice.
- Available summary, Score table and Log rows redraw only when their
  contents change. Telnet lines are added in batches.
- Bandmap view reuses its layout, shaped text and brushes. Grayline
  draws the coastlines as one cached shape.

Threads:
- Available, Bandmap colours, Check and Statistics do their judging
  and counting on the thread pool and draw the result on the UI thread.
- ContestLog takes a lock in Judge and in each method that changes the
  log, so a background Judge cannot read the indexes mid-edit.

Refresh rate:
- Statistics refreshes every 30 seconds and when the QSO count changes.
- Grayline refreshes at most every 15 seconds on session events.

Publish with ReadyToRun to cut startup JIT time.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-25 12:25:46 +00:00
erikbrockoandClaude Sonnet 5.5 845a629e37 Stop raising from restoring the entry window and focus the callsign box
The window manager activates another window when the entry window
minimizes, and raising the windows then restored the entry window.
Raising is now skipped while the entry window is minimized and for a
second after its state changes. Restoring the entry window puts focus
in the callsign box.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-25 11:27:46 +00:00
erikbrockoandClaude Opus 5 53c15d4061 Draw the grey line map
Window > Grey Line opens the world with the night on it. The dark area is
where the sun is down, and the band along its edge is the twilight from the
horizon to six degrees below it, which is the grey line an operator watches
for on the low bands.

Grayline works out where the sun stands: the subsolar point, the elevation at
a place, and the latitude the terminator crosses a meridian at, which is what
the map fills the night between. It is the same question SunTimes answers from
the other end, and the two are checked against each other in the tests.

The coastlines are Natural Earth's 110m coastline, public domain, cut to a
tenth of a degree.

Our own station is drawn from the grid square, the station being called and
the spots on the band from the country file. The map follows the clock.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RoGtneMQaz4M9w7Kk49AVD
2026-08-31 22:09:16 +00:00