With the code below I try to smoothly let player weapon follow the player camera though smooth() in a first person game. But it sometimes looks a bit laggy when I rotate the camera on e.g. 40 fps as if the fps is ~20 fps. If I remove the code lines with the smooth() function the small (but still noticeable) lag is gone.