NWNX:EE  8193.37.15
Optimizations

Readme

Game optimizations. Improves performance of various game elements.

Environment Variables

Variable Name Value Notes
NWNX_OPTIMIZATIONS_ASYNC_LOG_FLUSH true/false Flushes the game log on an async thread, potentially improving performance
NWNX_OPTIMIZATIONS_GAME_OBJECT_LOOKUP true/false Optimizes object lookup code, improving performance
NWNX_OPTIMIZATIONS_PLAYER_LOOKUP true/false Optimizes Player client lookup from object IDs, improving performance
NWNX_OPTIMIZATIONS_LUO_LOOKUP true/false Optimizes LastUpdateObject lookup code, improving performance
NWNX_OPTIMIZATIONS_ALTERNATE_GAME_OBJECT_UPDATE true/false Uses an experimental alternative update mechanism. Requires LUO_LOOKUP. WARNING: Will break all of NWNX_Appearance and the following NWNX_Player functions: SetObjectVisualTransformOverride, ApplyLoopingVisualEffectToObject, SetPlaceableNameOverride, SetCreatureNameOverride, SetObjectMouseCursorOverride and SetObjectHiliteColorOverride. Forcing objects to be always visible with NWNX_Visibility will also break.
NWNX_OPTIMIZATIONS_CACHE_SCRIPT_CHUNKS true/false Caches all script chunks, improving performance
NWNX_OPTIMIZATIONS_CACHE_DEBUGGER_INSTANCES true/false Caches all nwscript debugger instances, improving GetScriptBacktrace() performance
NWNX_OPTIMIZATIONS_CACHE_SCRIPTS true/false Caches all scripts, improving performance