feat: console on new thread
This commit is contained in:
4
main.cpp
4
main.cpp
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user