I'm pretty sure the Quest 2 implementation is bugged

Try this, it helps a lot with the specific issue the OP had in this thread. This won’t do any good for other headsets, but for Oculus Link with Quest it fixes the frame timing instability and makes ASW work as it should: PSA: Fix Found for Oculus Link/Quest Frame Sync Stutters and ASW Issues