This commit is contained in:
xsl
2025-12-24 10:20:53 +08:00
parent 1f9e4939b9
commit 4c5a05ae21
266 changed files with 568 additions and 377 deletions
+4
View File
@@ -125,6 +125,7 @@ void Application::createFramebuffers() {
void Application::mainLoop()
{
#ifdef _WIN32
static int testFrame = 0;
while (!glfwWindowShouldClose(window))
{
auto cur_time = getCurrentTimeMillis();
@@ -132,6 +133,9 @@ void Application::mainLoop()
auto functionTime = (cur_time - _lastDrawFrameTime);
_lastDrawFrameTime = getCurrentTimeMillis();
drawFrame(functionTime); // 在这里调用
if (testFrame++ == 300) {
break;
}
}
#else