(int64)((float)time_freq() / (float)g_Config.m_GfxRefreshRate)
– converting to float shouldn't be neccesaryg_Config.m_GfxRefreshRate/2
to time_freq()
if (
which should be if(
time_get()
function to implement time_get_milliseconds()
time_get
and time_get_milliseconds
into time_get_impl
and call this function for the common parts instead?time_get()
is missing a return
at the end, time_get_microseconds
doesn't need the extra pair of braces anymoretime_get_milliseconds
should probably divide by time_freq()
on linux and mactime_freq() / 1000 / 1000
?Input()->NextFrame
tick so that it is now independent of the graphics rerendering. do you know why it was previously only called when a new frame was rendered?git blame
to see which commit introduced a line of codegit blame src/engine/client/client.cpp
tig
, it has a UI that is a little bit better than that of the git
command, then it's tig blame src/engine/client/client.cpp
time_get_impl() / (time_freq() / 1000 / 1000);
everywhere except for windows?CONF_FAMILY_WINDOWS
and use this expression otherwise?i[distance]
(edited)src/engine/shared/console.cpp
CConsole::ParseArgs
(edited)i f s
do nothing?std::thread
?detach
shared_ptr
^^detach
your thread object no longer "owns" the thread and the thread is free to execute after the parent diesdetach
sizeof aBuf
→ sizeof(aBuf)
. maybe a colon after between Kicked (your name is banned
and %s
?