mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-08-07 06:18:42 +00:00
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:
committed by
Ryan Fleury
parent
45b59e4cc4
commit
d6608adf60
@@ -1012,6 +1012,10 @@ df_window_from_os_handle(OS_Handle os)
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if defined(_MSC_VER) && !defined(__clang__) && defined(NDEBUG)
|
||||||
|
#pragma optimize("", off)
|
||||||
|
#endif
|
||||||
|
|
||||||
internal void
|
internal void
|
||||||
df_window_update_and_render(Arena *arena, OS_EventList *events, DF_Window *ws, DF_CmdList *cmds)
|
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();
|
ProfEnd();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if defined(_MSC_VER) && !defined(__clang__) && defined(NDEBUG)
|
||||||
|
#pragma optimize("", on)
|
||||||
|
#endif
|
||||||
|
|
||||||
////////////////////////////////
|
////////////////////////////////
|
||||||
//~ rjf: Eval Viz
|
//~ rjf: Eval Viz
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user