]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - host.c
Add CONFIG_CAPTURE_VIDEO in VS projects, this was somehow missed by the author of...
[xonotic/darkplaces.git] / host.c
diff --git a/host.c b/host.c
index 0f19632afe23c68dd3a026d338b02e3bf27ffdd7..62dcf4748b19881b8832c6eaf4e6142e2f0ca2cd 100644 (file)
--- a/host.c
+++ b/host.c
@@ -804,8 +804,12 @@ void Host_Main(void)
                                wait = 1; // because we cast to int
 
                        time0 = Sys_DirtyTime();
-                       if (sv_checkforpacketsduringsleep.integer && !sys_usenoclockbutbenchmark.integer && !svs.threaded)
+                       if (sv_checkforpacketsduringsleep.integer && !sys_usenoclockbutbenchmark.integer && !svs.threaded) {
                                NetConn_SleepMicroseconds((int)wait);
+                               if (cls.state != ca_dedicated)
+                                       NetConn_ClientFrame(); // helps server browser get good ping values
+                               // TODO can we do the same for ServerFrame? Probably not.
+                       }
                        else
                                Sys_Sleep((int)wait);
                        delta = Sys_DirtyTime() - time0;
@@ -1017,6 +1021,7 @@ void Host_Main(void)
                        R_TimeReport("client");
 
                        CL_UpdateScreen();
+                       CL_MeshEntities_Reset();
                        R_TimeReport("render");
 
                        if (host_speeds.integer)