Set GENERATEDISTANCE in cClientHandle.h to 2 or more, that should fix the lags I think.
A low GENERATEDISTANCE creates lags in the client, so I'm assuming your client lags
A low GENERATEDISTANCE creates lags in the client, so I'm assuming your client lags