修复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

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

View File

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