make msvc release build much faster

cl.exe for some reason spends unreasonable amount of time optimizing
df_window_update_and_render function,  we can use pragma to skip
optimization for this function
This commit is contained in:
Martins Mozeiko
2024-01-31 20:02:11 -08:00
committed by Ryan Fleury
parent 45b59e4cc4
commit d6608adf60
+8
View File
@@ -1012,6 +1012,10 @@ df_window_from_os_handle(OS_Handle os)
return result;
}
#if defined(_MSC_VER) && !defined(__clang__) && defined(NDEBUG)
#pragma optimize("", off)
#endif
internal void
df_window_update_and_render(Arena *arena, OS_EventList *events, DF_Window *ws, DF_CmdList *cmds)
{
@@ -6637,6 +6641,10 @@ df_window_update_and_render(Arena *arena, OS_EventList *events, DF_Window *ws, D
ProfEnd();
}
#if defined(_MSC_VER) && !defined(__clang__) && defined(NDEBUG)
#pragma optimize("", on)
#endif
////////////////////////////////
//~ rjf: Eval Viz