feat: console on new thread

This commit is contained in:
Pc
2026-01-26 22:46:33 +01:00
parent ffa5a929df
commit 233d4189d1
3 changed files with 33 additions and 25 deletions

View File

@@ -813,10 +813,10 @@ int APIENTRY WinMain(HINSTANCE hInst, HINSTANCE hPrevInstance, LPSTR lpCmdLine,
// --- POPRAWKA 2: Używaj zapisanego hDC, a nie pobieraj nowego ---
SwapBuffers(hDC);
LOG("FPS: " << fpsCounter.getFPS() << " | Czas: " << fpsCounter.getFrameTime() << "ms");
LimitFPS(targetFPS);
}
}
}
// --- POPRAWKA 3: Zwolnij HDC przy zamykaniu ---
ReleaseDC(hWnd, hDC);