MTA:Eir/functions/engineSetStrictStreamingNodeDistributionEnabled: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(Renamed template) |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
{{MTA:Eir/Client_function}} | |||
__NOTOC__ | __NOTOC__ | ||
This function changes the streaming node allocation behavior of GTA:SA entities. It is only valid in conjunction with [[MTA:Eir/functions/engineSetInfiniteStreamingEnabled|engineSetInfiniteStreamingEnabled]]. If strict streaming node distribution is enabled, entities first allocate from existing nodes. If disabled, entities are allowed to allocate new streaming nodes from the heap without touching existing nodes. | This function changes the streaming node allocation behavior of GTA:SA entities. It is only valid in conjunction with [[MTA:Eir/functions/engineSetInfiniteStreamingEnabled|engineSetInfiniteStreamingEnabled]]. If strict streaming node distribution is enabled, entities first allocate from existing nodes. If disabled, entities are allowed to allocate new streaming nodes from the heap without touching existing nodes. |
Latest revision as of 08:06, 28 September 2023
This function changes the streaming node allocation behavior of GTA:SA entities. It is only valid in conjunction with engineSetInfiniteStreamingEnabled. If strict streaming node distribution is enabled, entities first allocate from existing nodes. If disabled, entities are allowed to allocate new streaming nodes from the heap without touching existing nodes.
By default, strict node distribution is enabled.
Syntax
bool engineSetStrictStreamingNodeDistributionEnabled ( bool enabled )
Arguments
- enabled: switch to set strict node distribution on or off
Returns
Returns true if enabled is passed as valid bool, false otherwise.
Example
Click to collapse [-]
ClientThis snippet ultimatively fixes the world flickering.
engineSetStrictStreamingNodeDistributionEnabled( false ); engineSetInfiniteStreamingEnabled( true );