I mean I know personally I use optifine, but sometimes I still have the rubber banding effect, so I often find it useful sometimes to not sprint (can get a little annoying though) I also believe lag is caused by entities, or lots of mobs to, so that could also be something to check for.