]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
actually, set the threshold to 10.
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 7 Aug 2009 18:41:03 +0000 (18:41 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 7 Aug 2009 18:41:03 +0000 (18:41 +0000)
If an entity receive function takes now 0.2222 seconds, and repeatedly does so when the ent is received, it's insane even at initialization.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9105 d7cf8633-e32d-0410-b094-e92efae38249

sv_main.c

index f18dd31ef90f7e8e7eb60f03730056a3fde14eb2..d37313ba3841eb584f819027b5b406fa7fb40ec4 100644 (file)
--- a/sv_main.c
+++ b/sv_main.c
@@ -1492,8 +1492,8 @@ void SV_WriteEntitiesToClient(client_t *client, prvm_edict_t *clent, sizebuf_t *
        else
                EntityFrameCSQC_WriteFrame(msg, maxsize, numsendstates, sv.writeentitiestoclient_sendstates, 0);
 
-       if(client->num_skippedentityframes >= 5)
-               need_empty = true; // force every 5th frame to be not empty (or cl_movement replay takes too long)
+       if(client->num_skippedentityframes >= 10)
+               need_empty = true; // force every 10th frame to be not empty (or cl_movement replay takes too long)
 
        if (client->entitydatabase5)
                success = EntityFrame5_WriteFrame(msg, maxsize, client->entitydatabase5, numsendstates, sv.writeentitiestoclient_sendstates, client - svs.clients + 1, client->movesequence, need_empty);