mirror of
https://github.com/GabsPuNs/Project-Zenith-Main.git
synced 2026-06-04 09:04:40 +00:00
Optimizations
This solves an FPS problem when 10 or more entities take damage
This commit is contained in:
@@ -523,12 +523,7 @@ BOOL InitInstance(HINSTANCE hInstance, int nCmdShow)
|
||||
nullptr);
|
||||
|
||||
if (!g_hWnd)
|
||||
{
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
ShowWindow(g_hWnd, (nCmdShow != SW_HIDE) ? SW_SHOWMAXIMIZED : nCmdShow);
|
||||
UpdateWindow(g_hWnd);
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
@@ -1345,6 +1340,9 @@ int APIENTRY _tWinMain(_In_ HINSTANCE hInstance,
|
||||
hr = XuiTimersRun();
|
||||
}
|
||||
#endif
|
||||
ShowWindow(g_hWnd, (nCmdShow != SW_HIDE) ? SW_SHOWMAXIMIZED : nCmdShow);
|
||||
UpdateWindow(g_hWnd);
|
||||
|
||||
MSG msg = {0};
|
||||
while( WM_QUIT != msg.message && !app.m_bShutdown)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user