MTA:Eir/functions/engineStreamingIsFiberedLoadingEnabled: Difference between revisions
Jump to navigation
Jump to search
(Created page with "__NOTOC__ This function returns whether the GTA:SA Streaming system is in original or fibered mode. In original mode, most resources are loaded in ...") |
(Renamed template) |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
{{MTA:Eir/Client_function}} | |||
__NOTOC__ | __NOTOC__ | ||
This function returns whether the [[GTA:SA_Resource_Streaming|GTA:SA Streaming system]] is in original or fibered mode. In original mode, most resources are loaded in one go, but big ones (exceeding slicer buffer size) are loaded exclusively and in two pulses. In fibered mode, the Streaming system can only take a user-defined percentage of the game frame time, meaning that resources can take an arbitrary amount of pulses depending on the complexity of said resources. | This function returns whether the [[GTA:SA_Resource_Streaming|GTA:SA Streaming system]] is in original or fibered mode. In original mode, most resources are loaded in one go, but big ones (exceeding slicer buffer size) are loaded exclusively and in two pulses. In fibered mode, the Streaming system can only take a user-defined percentage of the game frame time, meaning that resources can take an arbitrary amount of pulses depending on the complexity of said resources. |
Latest revision as of 08:21, 28 September 2023
This function returns whether the GTA:SA Streaming system is in original or fibered mode. In original mode, most resources are loaded in one go, but big ones (exceeding slicer buffer size) are loaded exclusively and in two pulses. In fibered mode, the Streaming system can only take a user-defined percentage of the game frame time, meaning that resources can take an arbitrary amount of pulses depending on the complexity of said resources.
By default, fibered loading is enabled.
Syntax
bool engineStreamingIsFiberedLoadingEnabled ()
Returns
Returns true if fibered loading is enabled, false otherwise.
Example
Click to collapse [-]
ClientThis snippet draws on the screen whether fibered loading is enabled or not.
addEventHandler( "onClientRender", root, function() local isEnabled = engineStreamingIsFiberedLoadingEnabled(); dxDrawText( "Streaming Mode: " .. ( isEnabled and "fibered loading" or "single execution" ), 100, 400 ); end );