MTA:Eir/functions/engineGetActiveStreamingEntityCount: Difference between revisions
Jump to navigation
Jump to search
(Created page with "{{Client function}} __NOTOC__ This function returns how many entities are inside of the streaming garbage collection system. It is usefu...") |
No edit summary |
||
Line 1: | Line 1: | ||
__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. |
Revision as of 18:15, 10 December 2013
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 );