natiny.window.get_render_calls
natiny.window.get_render_calls(win)
Returns the number of draw calls issued in the previous frame for a specific window. Useful for performance debugging.
Parameters
| Name | Type | Description |
|---|---|---|
win |
number |
Window handle from natiny.window.create |
Returns
| Type | Description |
|---|---|
number |
Draw call count, 0 if the window does not exist |
Example
local n = natiny.window.get_render_calls(win)
print("Draw calls: " .. n)