u/ryftools

▲ 7 r/dotnet

WinUI 3 packaged (MSIX) launch ~2× - 3x slower than unpackaged (MSI) : same AOT binary. Expected, or is there a lever I'm missing?

I ship the same WinUI 3 app (.NET 10, Native AOT, WindowsAppSDKSelfContained=true) in two ways : an unpackaged MSI and a packaged MSIX for the Store.

Every launch (cold and warm) of MSIX version is slow by 2 to 3 times. (~250ms vs ~550ms in my 6th gen i5 CPU)

I'm trying to understand whether that's just the packaged specific delay or something I can reduce.

Measured, steady-state (warm-up run discarded), same machine, same file-open argument, "Best performance" power mode, 5 runs each:

- MSI (unpackaged) - median 250 ms

- MSIX (packaged) - median 550 ms

Things I've already ruled out:

- Its a completely offline app. It reads the image file passed as argument and draws it on a Win2d Canvas surface.

- Not JIT. Both are AOT binaries.

- Not the WinAppSDK self-contained flag. (Disabling this causes an additional delay of 30 to 50ms in my PC)

- Trust level: the app is a full-trust.

- Even empty blank screen test app has the same issue.

Questions:

  1. Is a ~2× launch gap (≈300 ms) between MSIX and unpackaged normal for a full-trust AOT WinUI 3 app?

  2. Any packaged-app-specific levers I need to be aware of?

Environment: Windows 11, x64, .NET 10, WinAppSDK 2.x, AOT

reddit.com
u/ryftools — 10 hours ago

Let It Rain : rain and snow simulation on the desktop

Two years ago I posted a tiny rain simulator for Windows. It has got some new features in between.

- Snow that accumulates on your taskbar
- Multi-monitor support
- 4K / high-DPI now works properly
- Available on the Microsoft Store now and also a Mac port (redone in swift)

Still ~600KB, ~7MB RAM, <2% CPU in my 10 year old i5 PC.

Obsessively tuned to take up the least possible resources.
Windows: C++ · Direct2D · DirectComposition · DirectX 11
Mac: Swift · Metal · AppKit

Customize rain/snow color, wind, and particle count from the tray icon.

GitHub: https://github.com/riyasy/RainProject

Fair warning: This is only for pure aesthetics and does absolutely nothing functional or useful. I personally use it as a soothing distraction while working.

NOTE:
exe and mac bin aren't code-signed so SmartScreen may warn. Source is open if you want to build it yourself.
Setting to start with windows startup can result in a registry entry.
Mac app requires accessibility permission to get dock position and size.

u/ryftools — 6 days ago

FlyPhotos - a fast and lightweight Picasa Photo Viewer alternative

For the last 3 years I've been building a small open-source side project called FlyPhotos - a fast, lightweight photo viewer for Windows.

It started as a personal replacement for the old Picasa Photo Viewer. I wanted something with the same instant response and transparent background, but built on modern native Windows frameworks.

Performance has always been the main focus. It is very fast and once the first image loads, you can hold down the arrow keys and fly through thousands of photos with no loading spinners getting in your way. Zoom and pan animations run at very high frame rates, and a lot of effort went into making panning and zooming feel buttery smooth limited only by your GPU and monitor.

It also supports smooth playback of animated formats like GIF, Animated PNG (APNG), Animated AVIF, and Animated WebP.

A few things to note: it's just a viewer - no photo management and no built-in editor - but you can set up an external editor as a shortcut. Also, the installer isn't signed yet, so some browsers may flag it.

Tech : It uses WinUI3 for native modern Windows UI and DirectX through Win2D for image rendering.

Planned, not yet implemented : HDR  support and color profiles.

FlyPhotos is available here: https://github.com/riyasy/FlyPhotos

u/ryftools — 13 days ago