Browse Source

try IsEventDriven = true

main
Colin McMillen 12 months ago
parent
commit
07d25742fb
  1. 5
      Program.cs

5
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)) {

Loading…
Cancel
Save