feat(new_editor): wire project, inspector, and viewport runtime

This commit is contained in:
2026-04-19 00:03:25 +08:00
parent 8257403036
commit a57b322bc7
168 changed files with 14829 additions and 2507 deletions

View File

@@ -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) {