MTA:Eir/functions/engineSetInfiniteStreamingEnabled

From Multi Theft Auto: Wiki
Revision as of 18:59, 10 December 2013 by The GTA (talk | contribs) (Created page with "__NOTOC__ This function enables or disables heap allocation of streaming garbage collector nodes. The allocation behavior order is change...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This function enables or disables heap allocation of streaming garbage collector nodes. The allocation behavior order is changed using engineSetStrictStreamingNodeDistributionEnabled. If enabled, GTA:SA can keep an theoritcally infinite amount of entities inside of the streaming garbage collector. This also means that an theoretically infinite amount of entities can render on-screen at a time.

By default, infinite streaming is disabled.

Syntax

bool engineSetInfiniteStreamingEnabled ( bool enabled )

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 );