feat(new_editor): wire project, inspector, and viewport runtime
This commit is contained in:
@@ -32,9 +32,12 @@ int Application::Run(HINSTANCE hInstance, int nCmdShow) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
constexpr int kMaxMessagesPerTick = 64;
|
||||
MSG message = {};
|
||||
while (true) {
|
||||
while (PeekMessageW(&message, nullptr, 0U, 0U, PM_REMOVE)) {
|
||||
int processedMessageCount = 0;
|
||||
while (processedMessageCount < kMaxMessagesPerTick &&
|
||||
PeekMessageW(&message, nullptr, 0U, 0U, PM_REMOVE)) {
|
||||
if (message.message == WM_QUIT) {
|
||||
Shutdown();
|
||||
return static_cast<int>(message.wParam);
|
||||
@@ -42,6 +45,7 @@ int Application::Run(HINSTANCE hInstance, int nCmdShow) {
|
||||
|
||||
TranslateMessage(&message);
|
||||
DispatchMessageW(&message);
|
||||
++processedMessageCount;
|
||||
}
|
||||
|
||||
if (m_windowManager != nullptr) {
|
||||
|
||||
Reference in New Issue
Block a user