修复imgui cpu占用过高, 升级imgui
This commit is contained in:
2
imgui
2
imgui
Submodule imgui updated: 10a5a857f5...527b2c45af
@@ -135,6 +135,7 @@ void run_imgui() {
|
||||
|
||||
[commandBuffer presentDrawable:drawable];
|
||||
[commandBuffer commit];
|
||||
std::this_thread::yield();
|
||||
}
|
||||
}
|
||||
shutdown_imgui();
|
||||
|
||||
@@ -3,6 +3,8 @@
|
||||
#include "imgui_impl_win32.h"
|
||||
#include <d3d11.h>
|
||||
#include <tchar.h>
|
||||
#include <thread>
|
||||
|
||||
#include "imgui_main.h"
|
||||
|
||||
// Data
|
||||
@@ -141,6 +143,7 @@ void run_imgui() {
|
||||
tick_imgui(io.DeltaTime);
|
||||
draw_imgui(io.DeltaTime);
|
||||
render_imgui();
|
||||
std::this_thread::yield();
|
||||
}
|
||||
shutdown_imgui();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user