am not using hires version and in fact locked the screen res for N64 games at 720x576
this can add lag as you’re forcing your tv to do an up scaling operation. see https://github.com/RetroPie/RetroPie-Setup/wiki/Input-Lag#use-hdtvs-native-display-resolution
retropie already runs (most) n64 games at 320x240 and then let’s SDL to a (fast) upscale using the GPU.
the rest of the input lag wiki may help you if there’s still an issue.
weird that gles2n64 etc fix the problem but they don’t have accurate emulation so may have incorrectly quick latency to start with? not sure