mirror of
https://github.com/Leonmmcoset/CMLeonOS.git
synced 2026-04-21 10:53:59 +00:00
修复GUI帧数特别低的问题
This commit is contained in:
@@ -1 +1 @@
|
||||
2026-03-24 17:20:32
|
||||
2026-03-24 17:25:50
|
||||
@@ -1 +1 @@
|
||||
78ebe0c
|
||||
5fd826a
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -444,6 +444,7 @@ namespace CMLeonOS.Gui
|
||||
if (bufferModified)
|
||||
{
|
||||
driver.DoubleBufferUpdate();
|
||||
bufferModified = false;
|
||||
}
|
||||
|
||||
UpdateCursor();
|
||||
|
||||
Reference in New Issue
Block a user