使用 JavaScript能使本网站更好的工作。
首页
帮助
登录
lolengine
/
lol
镜像自地址
https://github.com/lolengine/lol
关注
1
点赞
0
派生
0
代码
工单
0
版本发布
0
百科
动态
浏览代码
Make the editor more responsive by handling GTK events before waiting for
the loop to complete.
legacy
Sam Hocevar
sam
14 年前
父节点
601ce07746
当前提交
a156dd810e
共有
2 个文件被更改
,包括
3 次插入
和
0 次删除
分列视图
Diff 选项
显示统计
下载 Patch 文件
下载 Diff 文件
+2
-0
src/gtk/editor.cpp
+1
-0
src/ticker.cpp
+ 2
- 0
src/gtk/editor.cpp
查看文件
@@ -82,6 +82,8 @@ static gint draw(GtkWidget *widget, GdkEventExpose *event)
Video::Clear();
Ticker::TickRender();
gtk_gl_area_swapbuffers(GTK_GL_AREA(widget));
while (g_main_context_iteration(NULL, FALSE))
;
Ticker::ClampFps(FPS);
}
+ 1
- 0
src/ticker.cpp
查看文件
@@ -73,6 +73,7 @@ void Ticker::TickGame()
{
Profiler::Stop(Profiler::STAT_TICK_FRAME);
Profiler::Start(Profiler::STAT_TICK_FRAME);
Profiler::Start(Profiler::STAT_TICK_GAME);
data->delta_time = data->timer.GetSeconds();
撰写
预览
正在加载...
取消
保存