MTA:Eir/functions/engineSetInfiniteStreamingEnabled: Difference between revisions
Jump to navigation
Jump to search
(Created page with "__NOTOC__ This function enables or disables heap allocation of streaming garbage collector nodes. The allocation behavior order is change...") |
(Renamed template) |
||
(3 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
{{MTA:Eir/Client_function}} | |||
__NOTOC__ | __NOTOC__ | ||
This function enables or disables heap allocation of [[GTA:SA_Streaming_Garbage_Collection|streaming garbage collector]] nodes. The allocation behavior order is changed using [[MTA:Eir/functions/engineSetStrictStreamingNodeDistributionEnabled|engineSetStrictStreamingNodeDistributionEnabled]]. If enabled, GTA:SA can keep an | This function enables or disables heap allocation of [[GTA:SA_Streaming_Garbage_Collection|streaming garbage collector]] nodes. The allocation behavior order is changed using [[MTA:Eir/functions/engineSetStrictStreamingNodeDistributionEnabled|engineSetStrictStreamingNodeDistributionEnabled]]. If enabled, GTA:SA can keep an theoretically 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. | By default, infinite streaming is disabled. | ||
Line 8: | Line 9: | ||
bool engineSetInfiniteStreamingEnabled ( bool enabled ) | bool engineSetInfiniteStreamingEnabled ( bool enabled ) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
===Arguments=== | |||
*'''enabled:''' a boolean deciding whether heap allocating of Streaming GC nodes is a viable option. | |||
===Returns=== | ===Returns=== |
Latest revision as of 08:07, 28 September 2023
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 theoretically 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 )
Arguments
- enabled: a boolean deciding whether heap allocating of Streaming GC nodes is a viable option.
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 );