markusro 18e085d3ee make the crosshair cursor fast on HiDPI screens with dirty-strip blitting
The previous blit path converted the whole axes bbox (several megapixels
on HiDPI displays) from RGBA to premultiplied ARGB on every motion
event, costing about 84 ms per frame on a maximized window. Per frame
now only the thin strips around the old and new line positions are
erased from a cached full-figure background, redrawn and blitted,
which brings the frame cost below 1 ms.

- BlitSafeCanvas paints blitted regions immediately instead of queueing
  them, which kept regular paints partial and wiped the axis labels
- CrosshairCursor coalesces motion events to 60 fps and erases strips
  by direct numpy copy from the background; matplotlib's restore_region
  with a bbox argument addresses a different coordinate frame and
  restores the wrong area, so it is avoided
- after a full render the old line positions are blitted right away,
  otherwise motion events processed before the pending repaint drew the
  cursor at its new position next to the stale one on screen
- clear_display recreates the crosshair so it survives plot switches

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-10-18 19:10:17 +02:00
2026-10-16 22:36:08 +02:00
2026-07-13 17:02:25 +02:00
2026-10-02 11:26:23 +02:00

Installing into private directory
=================================

1. Create a venv and include the system-site packages:
   `python3 -m venv venv --system-site-packages`
2. Active that venv: `. venv/bin/activate`
3. Install an editable package: `pip install --no-deps -e .`

This will use the system packages already installed.

Alternatively you can install withoout the system-site-packages:

    python3 -m venv venv
    . venv/bin/activate
    pip install -e .

This will download newer packages and install them in the venv.


Using uv
========
Dependicies needed: 
    sudo apt install libgirepository1.0-dev pkg-config

Then you can start DAMARIS3:
    uv run DAMARIS3
S
Description
No description provided
Readme GPL-2.0
9.5 MiB
0 Stars 3 Watchers 0 Forks
v0.32
Latest
2026-10-22 15:03:48 +00:00
Languages
Python 98.8%
C++ 0.6%
Shell 0.6%