Network movement and spawn lag when using dedicated server

Hi, i’m working on a multiplayer shooter and i was wondering if there is anything i could do in order to optimize the lag.
When using a dedicated server characters movement and jump lag (not a lot) and there is a delay when spawning a projectile. Thank you in advance for your help.