From 07d25742fb2a56cbfde3d617681ac1d839dade21 Mon Sep 17 00:00:00 2001 From: Colin McMillen Date: Tue, 25 Jul 2023 22:49:09 -0400 Subject: [PATCH] try IsEventDriven = true --- Program.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Program.cs b/Program.cs index 3a45e43..ae35134 100644 --- a/Program.cs +++ b/Program.cs @@ -548,7 +548,6 @@ public class Game : GameWindow { protected override void OnUpdateFrame(FrameEventArgs e) { base.OnUpdateFrame(e); - Console.WriteLine("update"); long now = DateTime.Now.Ticks; KeyboardState input = KeyboardState; @@ -692,7 +691,7 @@ public class Game : GameWindow { // string[] files = Directory.GetFiles(@"c:\users\colin\pictures\photos\2023\07\14\"); // string[] files = Directory.GetFiles(@"G:\DCIM\100EOSR6\"); // string[] files = Directory.GetFiles(@"C:\Users\colin\Pictures\photos\2018\06\23"); - string[] files = Directory.GetFiles(@"C:\Users\colin\Desktop\Germany all\104D7000"); + string[] files = Directory.GetFiles(@"C:\Users\colin\Desktop\Germany all\105D7000"); // string[] files = Directory.GetFiles(@"C:\Users\colin\Desktop\many-birds\"); for (int i = 0; i < files.Count(); i++) { @@ -749,7 +748,6 @@ public class Game : GameWindow { protected override void OnRenderFrame(FrameEventArgs e) { base.OnRenderFrame(e); - Console.WriteLine("render"); fpsCounter.Update(); LoadAndUnloadImagesAsync(); @@ -896,6 +894,7 @@ static class Program { nwSettings.Size = new Vector2i(bestMonitor.WorkArea.Size.X - 2, bestMonitor.WorkArea.Size.Y - 32); nwSettings.MinimumSize = UiGeometry.MIN_WINDOW_SIZE; nwSettings.Title = "Totte"; + nwSettings.IsEventDriven = true; // FIXME: nwSettings.Icon = ... using (Game game = new(gwSettings, nwSettings)) {