Better approach to returning mouse rotation after click

I’ve noticed that using the showMouseCursor function (set to true) from the player controller disables mouse rotation. A solution I found is using setInputModeGameOnly on the event tick (in the ThirdPersonCharacter from the ThirdPerson template). This is hurting my frame rate. Is there a better way to regain the mouse rotation for camera movement? I’ve tried using the setFocusToGameViewport and setInputModeGameOnly in EventBeginPlay, but that is not fixing the rotation problem.

You don’t need it on tick, you just set it back to game only once.