mirror of
https://github.com/Leonmmcoset/CMLeonOS.git
synced 2026-04-21 19:24:00 +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;
|
||||||
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);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -444,6 +444,7 @@ namespace CMLeonOS.Gui
|
|||||||
if (bufferModified)
|
if (bufferModified)
|
||||||
{
|
{
|
||||||
driver.DoubleBufferUpdate();
|
driver.DoubleBufferUpdate();
|
||||||
|
bufferModified = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
UpdateCursor();
|
UpdateCursor();
|
||||||
|
|||||||
Reference in New Issue
Block a user