some closestpos debug prints

This commit is contained in:
rtldg 2022-05-05 04:59:20 +00:00
parent 487e3db9d0
commit 2616712c9e

View File

@ -1868,6 +1868,11 @@ bool DefaultLoadReplay(frame_cache_t cache, int style, int track)
if (gB_ClosestPos) if (gB_ClosestPos)
{ {
#if DEBUG #if DEBUG
PrintToServer("about to create closestpos handle with %d %d %d %d",
gA_FrameCache[style][track].aFrames,
0,
gA_FrameCache[style][track].iPreFrames,
gA_FrameCache[style][track].iFrameCount);
Profiler p = new Profiler(); Profiler p = new Profiler();
p.Start(); p.Start();
#endif #endif
@ -3744,7 +3749,7 @@ float GetClosestReplayTime(int client)
#if DEBUG #if DEBUG
profiler.Stop(); profiler.Stop();
PrintToConsole(client, "iClosestFrame(%fs) = %d", client, profiler.Time, iClosestFrame); PrintToConsole(client, "iClosestFrame(%fs) = %d", profiler.Time, iClosestFrame);
delete profiler; delete profiler;
#endif #endif