This commit is contained in:
2509_92447106 committed 2026-11-07 19:31:02 +08:00
1 parent ab39c5103d
commit d81ab2acaa
20 files changed
+312 -66

No files matched your search

+3 -2
View File
@@ -53,7 +53,7 @@ public class CelestialView : Control, IDisposable
AvaloniaProperty.Register<CelestialView, bool>(nameof(ExaggerateTilt));
public static readonly StyledProperty<int> FrameRateProperty =
AvaloniaProperty.Register<CelestialView, int>(nameof(FrameRate), 30);
AvaloniaProperty.Register<CelestialView, int>(nameof(FrameRate), 120);
public static readonly StyledProperty<bool> ShowHudProperty =
AvaloniaProperty.Register<CelestialView, bool>(nameof(ShowHud), true);
@@ -379,7 +379,8 @@ public class CelestialView : Control, IDisposable
{
base.OnAttachedToVisualTree(e);
_camElevTarget = DefaultElevation;
_timer = new DispatcherTimer(TimeSpan.FromMilliseconds(16), DispatcherPriority.Render, OnTick);
// 8ms 轮询以支撑最高 120 FPS(模型内部仍按 FrameRate 限流);不依赖系统 VSync 节拍
_timer = new DispatcherTimer(TimeSpan.FromMilliseconds(8), DispatcherPriority.Render, OnTick);
_lastTick = Stopwatch.GetTimestamp();
_timer.Start();
}
+1 -1
View File
@@ -85,7 +85,7 @@ public sealed class EarthModelView : UserControl, IDisposable
ShowOrbit = true,
ShowGraticule = true,
ShowKeyLatitudes = true,
FrameRate = 60,
FrameRate = 120,
View = IsRevolution ? SceneView.Revolution : SceneView.Rotation
};
_canvas.JumpToOrbit(StartAngle);