MTA:Eir/functions/engineSetStrictStreamingNodeDistributionEnabled: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Created page with "__NOTOC__ This function changes the streaming node allocation behavior of GTA:SA entities. It is only valid in conjunction with [[MTA:Eir/functions/engineSetInfiniteStreamingEna...")
 
No edit summary
Line 8: Line 8:
bool engineSetStrictStreamingNodeDistributionEnabled ( bool enabled )
bool engineSetStrictStreamingNodeDistributionEnabled ( bool enabled )
</syntaxhighlight>  
</syntaxhighlight>  
===Arguments===
*'''enabled:''' switch to set strict node distribution on or off


===Returns===
===Returns===

Revision as of 04:47, 11 December 2013

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 [-]
Client

This snippet ultimatively fixes the world flickering.

engineSetStrictStreamingNodeDistributionEnabled( false );
engineSetInfiniteStreamingEnabled( true );