MTA:Eir/functions/engineStreamingSetFiberedPerfMultiplier

From Multi Theft Auto: Wiki
Revision as of 07:37, 11 December 2013 by The GTA (talk | contribs) (Created page with "__NOTOC__ This function changes the fibered loading frame time execution percentage of the MTA:Eir Streaming system. 100% means that the Streaming ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This function changes the fibered loading frame time execution percentage of the MTA:Eir Streaming system. 100% means that the Streaming system can take as much as the last frame time the engine took. If set to 0%, the Streaming system will not halt but take a step at a time, disregarding any time settings.

Lower percentages decrease the CPU load that the Streaming loader issues every frame. While it does not affect high-end CPUs, low end CPUs can greatly benefit from lower percentages when traveling across the world or entering dense areas. In general, lower percentages reduce lag spikes that occur when loading dense areas.

By default, the frame time execution percentage is set to 0.6.

Syntax

bool engineStreamingSetFiberedPerfMultiplier ( double execPerc )

Arguments

  • execPerc: the new frame time execution percentage to assign to fibered loading

Returns

Returns true if execPerc is passed as valid double number, false otherwise.

Example

Click to collapse [-]
Client

This snippet makes the world load very slow. Lag spikes cannot occur due to Streaming loading anymore.

engineStreamingSetFiberedLoadingEnabled( true );
engineStreamingSetFiberedPerfMultiplier( 0 );