summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: bec8cdb)
raw | patch | inline | side by side (parent: bec8cdb)
author | Ketmar Dark <ketmar@ketmar.no-ip.org> | |
Sat, 12 Oct 2019 00:21:04 +0000 (03:21 +0300) | ||
committer | Ketmar Dark <ketmar@ketmar.no-ip.org> | |
Sat, 12 Oct 2019 15:54:12 +0000 (18:54 +0300) |
src/game/g_window.pas | patch | blob | history |
diff --git a/src/game/g_window.pas b/src/game/g_window.pas
index 3e38a841fc74351bd56529596f5bc29b2aa2450e..b0c06786a82ac434609231d0d69d835d60e04256 100644 (file)
--- a/src/game/g_window.pas
+++ b/src/game/g_window.pas
const
- ProgressUpdateMSecs = 1;//100;
+ ProgressUpdateMSecs = 35; //1;//100;
var
h_Wnd: PSDL_Window = nil;
end;
+{$IFNDEF HEADLESS}
var
prevLoadingUpdateTime: UInt64 = 0;
+{$ENDIF}
procedure ProcessLoading (forceUpdate: Boolean=false);
var
exit;
end;
+{$IFNDEF HEADLESS}
if not wMinimized then
begin
- if forceUpdate then
- begin
- prevLoadingUpdateTime := getTimeMilli();
- end
- else
+ if not forceUpdate then
begin
stt := getTimeMilli();
- if (stt < prevLoadingUpdateTime) or (stt-prevLoadingUpdateTime >= ProgressUpdateMSecs) then
- begin
- prevLoadingUpdateTime := stt;
- forceUpdate := true;
- end;
+ forceUpdate := (stt < prevLoadingUpdateTime) or (stt-prevLoadingUpdateTime >= ProgressUpdateMSecs);
end;
-{$IFNDEF HEADLESS}
if forceUpdate then
begin
DrawMenuBackground('INTER');
DrawLoadingStat();
g_Console_Draw(True);
SwapBuffers();
+ prevLoadingUpdateTime := getTimeMilli();
end;
-{$ENDIF}
end;
+{$ENDIF}
e_SoundUpdate();