MTA:Eir/functions/engineGetActiveStreamingEntityCount: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
(Renamed template) |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
{{Client_function}} | {{MTA:Eir/Client_function}} | ||
__NOTOC__ | __NOTOC__ | ||
This function returns how many entities are inside of the [[GTA:SA_Streaming_Garbage_Collection|streaming garbage collection system]]. It is useful for performance debugging purposes. More uses come out of it if combined with other engine streaming functions. | This function returns how many entities are inside of the [[GTA:SA_Streaming_Garbage_Collection|streaming garbage collection system]]. It is useful for performance debugging purposes. More uses come out of it if combined with other engine streaming functions. |
Latest revision as of 08:05, 28 September 2023
This function returns how many entities are inside of the streaming garbage collection system. It is useful for performance debugging purposes. More uses come out of it if combined with other engine streaming functions.
Syntax
int engineGetActiveStreamingEntityCount ()
Returns
Returns the amount of entities that are registered inside of the streaming garbage collector.
Example
Click to collapse [-]
ClientThis snippet draws the amount of active streaming entities on your screen.
addEventHandler( "onClientRender", root, function() local count = engineGetActiveStreamingEntityCount(); dxDrawText( "#streaming-entities: " .. count, 100, 400 ); end );