Good afternoon.
Devs, Is there any performance problems with functions marked as [Client], [Server], [ClientCallback] etc?
As I know it’s reflection stuff which is slow, or not?
Thanks.
SOLVED: Seems like attributes just tell compiler to add condition so it will be added to your standalone build.
That’s how code looks after decompilation.
if(!NetworkClient.active) for client callback
And if(!NetworkServer.active) for server callback.
Yes, mostly those attributes used for the UnetWeaver to properly add some logic during code generation. So there’s low impact on the performance during runtime. Though, checks are still checks. Don’t use them where they’re not needed.