I've written a mutator that logs the location of all players every X seconds. I'd like to call my timer function quickly enough to yield accurate location data (I'm using an inteval of 0.5 seconds currently). But not too suprisingly these operations cause the game to bog down once multiple players join.
Anyone know if is is possible to write the following code more efficiently so the game won't bog down as much?
Thanks!
Anyone know if is is possible to write the following code more efficiently so the game won't bog down as much?
Code:
function Timer() { local Controller C; for (C = Level.ControllerList; C != None; C = C.NextController) { if (C.Pawn != None) Log(Level.Timeseconds $ ", " $ C.Pawn.location $ ", " $ C.PlayerReplicationInfo.PlayerName, 'LOG_LOC'); } super.Timer(); }
Comment