提交 a1b1fd8d 编写于 作者: 指向BIOS的野指针's avatar 指向BIOS的野指针

remove updating_signal

上级 2cc03bb5
......@@ -9,6 +9,7 @@
#include "../includes/bsv.hh"
#include "../includes/syscfg.hh"
#include "../dbg/logs.hh"
#include "update.hh"
......@@ -24,8 +25,6 @@ namespace bwl
void *drm_buffer; //屏幕缓冲区
uint8_t updating_signal = 1; //更新标志
extern uint64_t bgbuffsize;
__updating_signals __ud;
......@@ -36,10 +35,6 @@ namespace bwl
*/
void updater()
{
if (!updating_signal) //没有更新屏幕的需求就直接返回
return;
else
updating_signal = 0;
//检查背景更新
if (__ud.__bg.sig)
{
......@@ -65,6 +60,7 @@ namespace bwl
{
__ud.__bg = __ud.bg_update_que.front();
__ud.bg_update_que.pop();
bwl::log("updated background");
}
//鼠标队列
......@@ -82,9 +78,9 @@ namespace bwl
useconds_t itv = interval(server::getFPS()); //获取帧率并换算为每帧时间间隔
while (server_running)
{
usleep(itv); //睡眠
update_queues(); //更新队列
updater(); //更新屏幕
usleep(itv * 1000 - 500); //睡眠
update_queues(); //更新队列
updater(); //更新屏幕
}
}
};
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册