MTA:Eir/functions/engineAllowStreamingNodeStealing: Difference between revisions
Jump to navigation
Jump to search
(Created page with "__NOTOC__ This function allows or disallows the Streaming GC node stealing performed by native GTA:SA. This is the functionality that dir...") |
(Renamed template) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{MTA:Eir/Client_function}} | |||
__NOTOC__ | __NOTOC__ | ||
This function allows or disallows the [[GTA:SA_Streaming_Garbage_Collection|Streaming GC]] node stealing performed by native GTA:SA. This is the functionality that directly causes world flickering if the engine encounters Streaming GC node shortage. Disabling this functionality will greatly reduce the amount of entities that can be freed of their Streaming GC nodes. | This function allows or disallows the [[GTA:SA_Streaming_Garbage_Collection|Streaming GC]] node stealing performed by native GTA:SA. This is the functionality that directly causes world flickering if the engine encounters Streaming GC node shortage. Disabling this functionality will greatly reduce the amount of entities that can be freed of their Streaming GC nodes. | ||
Line 8: | Line 9: | ||
bool engineAllowStreamingNodeStealing ( bool allowed ) | bool engineAllowStreamingNodeStealing ( bool allowed ) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
===Arguments=== | |||
*'''allowed:''' a boolean deciding whether the GTA:SA engine can take away Streaming GC nodes from on screen/visible entities. | |||
===Returns=== | ===Returns=== |
Latest revision as of 08:20, 28 September 2023
This function allows or disallows the Streaming GC node stealing performed by native GTA:SA. This is the functionality that directly causes world flickering if the engine encounters Streaming GC node shortage. Disabling this functionality will greatly reduce the amount of entities that can be freed of their Streaming GC nodes.
By default, Streaming GC node stealing is allowed.
Syntax
bool engineAllowStreamingNodeStealing ( bool allowed )
Arguments
- allowed: a boolean deciding whether the GTA:SA engine can take away Streaming GC nodes from on screen/visible entities.
Returns
Returns true if allowed is passed as valid boolean, false otherwise.
Example
Click to collapse [-]
ClientThis snippet is an alternative to the world flickering fix applied by infinite streaming. It once again sets the Streaming system into a sparse mode. Garbage Collection is considered better than node stealing.
engineAllowStreamingNodeStealing( false ); engineStreamingSetGCOnDemandEnabled( true );