I do this in my c++ character controller tick:
And I do this in my blueprint debug hud (widget blueprint)
I did run as Standalone from the editor
The sleep is to easily reproduce lag, it can also be triggered by alt+tabing and dragging the window.