void UKismetSystemLibrary::PrintText(UObject* WorldContextObject, const FText InText, bool bPrintToScreen, bool bPrintToLog, FLinearColor TextColor, float Duration)
{
#if !(UE_BUILD_SHIPPING || UE_BUILD_TEST) // Do not Print in Shipping or Test
PrintString(WorldContextObject, InText.ToString(), bPrintToScreen, bPrintToLog, TextColor, Duration);
#endif
}
There is still a lot of overhead just getting to this function via the reflection system. AS the node still get called, they hit this function, which simply returns. But looking up a function in a linked list by name burns a cache line for each node in the list. A proper study would require timing 1 million calls or so in a tight loop and hold a stopwatch and see how long it takes.
Most likely though, if you’re fine with performance, then anyone who likes the app would rather you spent your time on the next app rather than worrying about things that have not been reported as a problem.
Cheers,