3 ms·
I need to update some screenshots! It looks very similar though, I tried to mimic the UI pretty closely. This video shows a demo on Windows: https://youtu.be/wu
by dceddia 4y ago
I need to update some screenshots! It looks very similar though, I tried to mimic the UI pretty closely. This video shows a demo on Windows: https://youtu.be/wuy-LKSE3y0 https://youtu.be/wuy-LKSE3y0
I’m using Svelte and Tailwind (not Tailwind UI) so the UI is custom, plus or minus some of Tailwind’s defaults.
- nu11ptr 4y agoNice - I have no UI skills so will definitely use an existing lib. I know my limits. :-) Did you notice any diff in UI speed with view being in JS/HTML/CSS? Response time seems nice in your video so I'm guessing negligible?
- dceddia 4y agoNope, it’s fine, and maybe even faster actually. The slowest part is drawing the waveform and the (potentially thousands of) red silent areas on a <canvas>, and the Tauri app does better than the Swift app did there. The 2D canvas is GPU-accelerated so it’s pretty snappy even without doing a bunch of optimizing with dirty rectangles etc, whereas the Swift NSView isn’t hardware accelerated so it required a lot more hand optimizing and I think it’s still not ideal. The big thing is to avoid blocking the UI thread, so if you’re calling into a Rust function that could take more than a couple milliseconds, marking that Rust function (aka Tauri command) as async will run it in a background thread and the UI won’t hiccup.
- nu11ptr 4y agoThanks for the feedback - this is helpful