修复GUI帧数特别低的问题

This commit is contained in:
2026-03-24 17:31:52 +08:00
parent 5fd826ab54
commit 6c75c51e01
4 changed files with 3 additions and 5 deletions

View File

@@ -1 +1 @@
2026-03-24 17:20:32 2026-03-24 17:25:50

View File

@@ -1 +1 @@
78ebe0c 5fd826a

View File

@@ -17,7 +17,6 @@
using CMLeonOS; using CMLeonOS;
using CMLeonOS.Logger; using CMLeonOS.Logger;
using System; using System;
using System.Threading;
namespace CMLeonOS.Gui namespace CMLeonOS.Gui
{ {
@@ -50,7 +49,6 @@ namespace CMLeonOS.Gui
} }
Console.WriteLine("Loading apps..."); Console.WriteLine("Loading apps...");
Thread.Sleep(1000);
AppManager.LoadAllApps(); AppManager.LoadAllApps();
ProcessManager.AddProcess(windowManager); ProcessManager.AddProcess(windowManager);
@@ -81,7 +79,6 @@ namespace CMLeonOS.Gui
while (guiRunning) while (guiRunning)
{ {
ProcessManager.Yield(); ProcessManager.Yield();
System.Threading.Thread.Sleep(1);
} }
} }

View File

@@ -444,6 +444,7 @@ namespace CMLeonOS.Gui
if (bufferModified) if (bufferModified)
{ {
driver.DoubleBufferUpdate(); driver.DoubleBufferUpdate();
bufferModified = false;
} }
UpdateCursor(); UpdateCursor();