File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -1366,13 +1366,16 @@ procedure D_DoomMain;
1366
1366
filename: string;
1367
1367
scale: integer;
1368
1368
_time: integer;
1369
+ startloadingtime: LongWord;
1369
1370
s_error: string;
1370
1371
i: integer;
1371
1372
j: integer;
1372
1373
episodes: integer;
1373
1374
err_shown: boolean;
1374
1375
s1, s2: string;
1375
1376
begin
1377
+ startloadingtime := I_GetTickCount;
1378
+
1376
1379
outproc := @I_IOprintf;
1377
1380
wadfiles := TDSTringList.Create;
1378
1381
@@ -2074,6 +2077,10 @@ procedure D_DoomMain;
2074
2077
autostart := true;
2075
2078
end ;
2076
2079
2080
+ printf(StringOfChar(' -' , 21 ) + #13 #10 );
2081
+ printf(' Load time: %2.3f secs' #13 #10 , [(I_GetTickCount - startloadingtime) / 1000 ]);
2082
+ printf(StringOfChar(' -' , 21 ) + #13 #10 );
2083
+
2077
2084
p := M_CheckParm(' -playdemo' );
2078
2085
if (p <> 0 ) and (p < myargc - 1 ) then
2079
2086
begin
Original file line number Diff line number Diff line change @@ -39,6 +39,9 @@ Features:
39
39
- Custom defined actors (ACTORDEF)
40
40
41
41
History - Change log
42
+ --------------------
43
+ Displays loading time at startup.
44
+
42
45
--------------------
43
46
version 1.14.18.134 (20220410)
44
47
------------------------------
You can’t perform that action at this time.
0 commit comments