I just tested it like this:
It has to be run in the HUD’s unique event that fires every frame. It’s quite performant.
Seems to be working fine this way.