Release 1.1.0 with adaptive RAM and interactive previews
All checks were successful
Release AstroFrame / packages (push) Successful in 1m13s

Replace fixed process, heap, frame and worker caps with physical RAM admission and CPU-scaled concurrency. Round Windows job budgets to native allocation boundaries. Add persistent cursor-centered zoom, drag and reset, fresh launches, cerulean update indicators and grey native startup backgrounds. Validate with isolated fixtures and a fake updater.
This commit is contained in:
Elijah 2026-10-04 09:33:44 -07:00
parent 6b56c0b122
commit a8e7a87b94
21 changed files with 271 additions and 80 deletions

View file

@ -5,6 +5,14 @@ using Velopack.Sources;
int passed = 0;
void Check(bool value, string label) { if (!value) throw new Exception(label); Console.WriteLine("PASS " + label); passed++; }
var viewport=new PreviewViewport();var area=new Avalonia.Rect(0,26,600,500);var image=new Avalonia.Size(800,600);var anchor=new Avalonia.Point(365,250);
var beforeZoom=viewport.ImageRect(area,image);viewport.ZoomAt(3,anchor,area,image);var afterZoom=viewport.ImageRect(area,image);
Check(Math.Abs((anchor.X-beforeZoom.X)/beforeZoom.Width-(anchor.X-afterZoom.X)/afterZoom.Width)<1e-10&&Math.Abs((anchor.Y-beforeZoom.Y)/beforeZoom.Height-(anchor.Y-afterZoom.Y)/afterZoom.Height)<1e-10,"zoom preserves the image point under the cursor");
var centerBefore=(area.Center.X-afterZoom.X)/afterZoom.Width;var resized=viewport.ImageRect(new Avalonia.Rect(0,26,300,250),image);
Check(Math.Abs(centerBefore-(150-resized.X)/resized.Width)<1e-10,"resizing preserves the normalized image position");
viewport.ZoomAt(1000,area.Center,area,image);viewport.ZoomAt(1000,area.Center,area,image);Check(viewport.Zoom==16,"zoom stays bounded at maximum magnification");
viewport.Drag(new Avalonia.Vector(1e6,-1e6),area,image);Check(Math.Abs(viewport.Pan.X)<viewport.Zoom/2&&Math.Abs(viewport.Pan.Y)<viewport.Zoom/2,"drag limits keep the image reachable");
viewport.Reset();Check(viewport.Zoom==1&&viewport.Pan==default,"reset restores fitted and centered image");
var temp = Path.Combine(Path.GetTempPath(), "AstroFrame-update-tests-" + Guid.NewGuid());
Directory.CreateDirectory(temp);
try