MTA:Eir/functions/engineIsStreamingNodeStealingAllowed: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Created page with "__NOTOC__ This function returns whether Streaming GC node stealing performed by GTA:SA. This is the functionality that directly causes wo...")
 
(Renamed template)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{MTA:Eir/Client_function}}
__NOTOC__  
__NOTOC__  
This function returns whether [[GTA:SA_Streaming_Garbage_Collection|Streaming GC]] node stealing performed by GTA:SA. This is the functionality that directly causes world flickering if the engine encounters Streaming GC node shortage. It is recommended to disable this functionality and use [[MTA:Eir/functions/engineStreamingSetGCOnDemandEnabled|garbage collection]] instead.
This function returns whether [[GTA:SA_Streaming_Garbage_Collection|Streaming GC]] node stealing is performed by GTA:SA. This is the functionality that directly causes world flickering if the engine encounters Streaming GC node shortage. It is recommended to disable this functionality and use [[MTA:Eir/functions/engineStreamingSetGCOnDemandEnabled|garbage collection]] instead.


By default, Streaming GC node stealing is allowed.
By default, Streaming GC node stealing is allowed.

Latest revision as of 08:21, 28 September 2023

This function returns whether Streaming GC node stealing is performed by GTA:SA. This is the functionality that directly causes world flickering if the engine encounters Streaming GC node shortage. It is recommended to disable this functionality and use garbage collection instead.

By default, Streaming GC node stealing is allowed.

Syntax

bool engineIsStreamingNodeStealingAllowed ()

Returns

Returns true if the GTA:SA engine is allowed to take away Streaming GC nodes from on-screen/visible entities, false otherwise.

Example

Click to collapse [-]
Client

This snippet turns on garbage collection if Streaming node stealing is found enabled.

if ( engineIsStreamingNodeStealingAllowed() ) then
    engineAllowStreamingNodeStealing( false );
    engineStreamingSetGCOnDemandEnabled( true );
end