Page MenuHomeFeedback Tracker

CfgFunctions "serverOnly" attribute
New, NormalPublic

Description

Functions Library could use a "serverOnly = 1" additional attribute, to make it so the function itself is compiled on the server only in order to save some client's loading time. This would of course only apply to mission-declared functions.

Details

Severity
Feature
Resolution
Open
Reproducibility
N/A
Operating System
Windows 10 x64
Category
Performance

Event Timeline

dedmen added a subscriber: dedmen.Aug 16 2021, 12:54 PM

Could just use preprocessor #ifdef to hide them on server, either with __IS_DEDICATED__ or with command line parameter macro