diff --git a/src/game/g_window.pas b/src/game/g_window.pas
index 045a49ff69cea7a4355e292417fd58edaf07711a..582c2d98973da6f38b5819829fc5c807d10e1a3b 100644 (file)
--- a/src/game/g_window.pas
+++ b/src/game/g_window.pas
{$IFDEF WINDOWS}Windows,{$ENDIF}
SDL2, GL, GLExt, e_graphics, e_log, g_main,
g_console, SysUtils, e_input, g_options, g_game,
- g_basic, g_textures, e_sound, g_sound, g_menu, ENet, g_net;
+ g_basic, g_textures, e_sound, g_sound, g_menu, ENet, g_net,
+ g_map;
var
h_Wnd: PSDL_Window;
wNeedTimeReset := False;
end;
+ g_Map_ProfilersBegin();
+
t := Time_Delta div 28{(27777 div 1000)};
if t > 0 then
begin
else if NetMode = NET_CLIENT then g_Net_Client_Update();
end;
+ g_Map_ProfilersEnd();
+
if wLoadingQuit then
begin
g_Game_Free();
begin
if ParamStr(idx) = '--opengl-dump-exts' then gwin_dump_extensions := true;
if ParamStr(idx) = '--twinkletwinkle' then gwin_k8_enable_light_experiments := true;
+ if ParamStr(idx) = '--jah' then g_profile_history_size := 100;
+ if ParamStr(idx) = '--sap' then gdbg_map_use_sap := true;
+ if ParamStr(idx) = '--grid' then gdbg_map_use_sap := false;
end;
e_WriteLog('Initializing OpenGL', MSG_NOTIFY);