If the data is calculated on the host, then of course the host's optifine will affect the player. The compatibility of optifine is devastating (so much so that some players call it "optimal"), and it is often not recommended to use optifine in high versions. If you just want to use some shaders, you may try oculus. If you are looking for better performance, you can try mods such as FerriteCore.