engineGetDistantLightStats
Client-side
Returns Project2DFX catalogue, visible render-queue, and capacity counters.
Syntax
table engineGetDistantLightStats()Returns
A table containing enabled, definitions, activeCoronas, coronaCapacity, and drawDistance. activeCoronas is the current private render-queue size; coronaCapacity is 25000.
Ownership and lifecycle
Renderer counters live for the current process. Distant lights start disabled, and each client resource can opt in.
Important behavior
- Since commit 25648d888, these counters describe Neon's private distant-light queue rather than GTA/MTA's shared 4096-entry corona pool.
Where this comes from
SOURCECLuaEngineDefs.cppClient/mods/deathmatch/logic/luadefs/CLuaEngineDefs.cpp INTRODUCED / EXTENDEDd0a91316bRead the commit and why the change was made RELATED CATEGORY HARNESS project2dfx-test Category-level coverage · test-resources/project2dfx-test
RELATED NEON APIS
Read the system guide → Continue exploring
← Back to the Neon Lua API · How Renderer and distant lights works →