Skip to content

ShaderSweep 2.3.0

Choose a tag to compare

@github-actions github-actions released this 02 Nov 08:10
· 9 commits to main since this release

Changed

  • A big clean no longer piles up in memory. The walker that finds files is far faster than the threads that delete them, and it used to queue every path it found. Clearing 200,000 files peaked at 43 MB. The queue now holds at most 1,024 paths, and the same run peaks at 8.2 MB with no change in speed (about 19,500 files a second either way).
  • Notes that are only good to know, such as running apps or a pending restart, fold down to one line, so the list of caches stays on screen. Anything that needs attention stays in full.
  • The window redraws only what changed and keeps keyboard focus on the same control, and progress is drawn once per frame.
  • The timer behind the elapsed time and the restart countdown now runs only while one of them is showing, so an idle window does no work.
  • Links in the footer and in Options have icons, and so do the drive lines. A drive with under a tenth of its space free is tinted amber.

Added

  • Every drive with a cache is shown, not just C:. A Steam library on D: or a World of Warcraft install on E: puts its caches on that drive, so the header now lists free space for each drive that holds one, system drive first. After a real clean the result says how much each drive gained, for example D: 3.54 GB more free, now 1.42 TB. It appears once the rescan reads the drives, and only for a drive that really gained space. A drive whose Recycle Bin holds items is listed too, since emptying the bin gives space back there.
  • F5 and Ctrl+R scan again. Before, they reloaded the page and wiped the result on screen. They do nothing while a dialog is open.

Fixed

  • Screen readers no longer read the clean out loud as it runs. The big number was a live region, and it changes many times a second while cleaning. A screen reader now hears one sentence when a scan finishes and one when a clean finishes, such as "Clean finished. 11.81 GB freed." The restart countdown is a timer, so it is not read out every second either. Errors still interrupt.

Checked

  • No leaks. 400 scans in a row held steady at about 3.5 MB and 250 handles. Filling and clearing a folder 30 times held at about 1.6 MB and 161 handles. 60 clean and scan cycles in the window left the DOM at the same 580 nodes.
  • The real app at idle is the 3.2 MB exe plus six WebView2 processes, about 190 MB of committed memory in all and under 1% of one core.

Project

  • main.ts is split into state, dom, render, actions and one file per view. providers.rs is split into gpu, launchers and housekeeping modules.
  • Three ignored benchmark tests, bench_clear, bench_scan and bench_repeat, print time, peak memory and handle counts. Set SHADERSWEEP_BENCH=1 and run them with cargo test --release bench_ -- --ignored --nocapture. Without the variable they do nothing, so CI skips the work.