Repository navigation
1.3.7 transfer to rust and more
What changed since 1.2.4
The main thing we did was rewrite Reshot in Rust. Up to 1.2.4 it was C# and WPF, and the settings window was a separate Tauri app, which meant a web page running in WebView2 as its own process. Because of that, the Half-Life 2 look had to be built twice and then kept in sync. Now everything is drawn with gpui: the overlay, settings, the tray menu, the radial menu and the recording window. The settings window no longer uses a webview at all. It was rebuilt from scratch but looks the same as before, line for line, with the same Roboto font, blurred backdrop and rounded corners. What's left is a single exe, with no .NET next to it and no second process. Your settings carry over on update because the keys in settings.json stayed the same.
The app also got lighter along the way. Sitting in the tray it holds about 21 MB and uses close to 0% CPU. The UI doesn't load until you press the hotkey for the first time.
After that a lot of time went into speed:
- The erasers, blur and pixelation used to recompute the whole stroke from the start on every mouse move, which took up to 0.4 seconds on a long stroke across two monitors. Now they only redo the new piece, which takes a few milliseconds, and the cursor no longer jumps.
- Export only builds the image inside the selection instead of the whole desktop.
- If Desktop Duplication keeps failing on a machine, captures no longer spend 40 to 150 ms on it before every shot.
- Recording now converts frames to NV12 on the graphics card and sends ffmpeg 1.5 bytes per pixel instead of 4. At 1080p60, ffmpeg uses 20 to 30% less CPU and Reshot itself about half as much.
- Without a hardware encoder, libx264 is used instead of Microsoft's software encoder. That takes 232 MB of memory instead of 693.
- The GPU encoders are tested in parallel, so recording starts about 300 ms sooner.
- Recordings now use proper BT.709 colour. Before, colours looked slightly off in players.
OCR now picks up small text. Wide selections used to go to the engine at their original size, and it missed most normal UI text, finding only 3 to 38% of the words. Now the image is scaled up before recognition, and it finds 95 to 100%.
New stuff:
- A hardness slider on every tool except text, for soft brushes, soft erasers and soft edges on blur.
- If you draw one selection inside another with Ctrl, it cuts a hole. If it sticks out, it extends the area. Export and recording follow the same shape.
- A minimum bitrate slider in video settings, so small areas can be recorded sharper.
- The installer now matches the app: dark pages, its own frame, and images from Reshot's art.
And a bunch of small fixes: opacity finally works on shapes and text, text is placed exactly at the cursor, soft strokes no longer have seams, the old radial menu icons are back, and the stray frame around the menus is gone