Skip to content

0.2.0-beta.9

Pre-release
Pre-release
Compare
Choose a tag to compare
@github-actions github-actions released this 14 Dec 22:22
· 264 commits to main since this release

This release includes a couple major performance improvements. Overall, the log window should feel a bit smoother. There are still some issues with the last line sometimes being partially hidden (or not fully scrolled).

🚀 New

  • Added an Auto option for the go to field stage in HAL. The option is not active by default. To enable it, go to Preferences - HAL - Use auto mode. After that, the dropdown menu in the go to field stage will have an Auto setting that will call hal goto-field --auto. When the auto mode is enabled, the Fix alt/az checkbox is replaced with Hartmann (probably we should remove the Fix alt/az completely). If Hartmann is selected, the auto mode will also take a hartmann. Be careful with that option on cloned designs.
  • Added a button to the log window header to scroll to bottom.

✨ Improved

  • Message buffering now happens on the main process side. Replies are stored in a buffer in TronConnection and every 500ms are emitted (as a single list) to all the subscribed loggers. The log window now expects to receive a list of replies, filters them, and passed them to Virtuoso. There is no buffering on the renderer side. Changing the configuration produces an instantaneous re-render of the replies (there is no 500ms delay).
  • The actor selector menu button was asking the main process for a list of actors every 30ms (😞), which kept the log window renderer process using a decent amount of CPU time even when completely idle. This is changed to a request every second. That's still a lot, and probably it should be refactored into something that emits an event only when a new actor has been seen.
  • Stopped using use-elapsed-time for counters. It seems that even if one only wants and update every second, the package triggers a re-render every few ms. Our use-cases are simple enough that a useEffect with a setInterval is enough.

🔧 Fixed

  • Fix IOSSwitch thumb colour on hover.

⚙️ Engineering

  • Added a usePrevious hook to quickly wrap values in a useRef.