natiny_window_get_render_calls

C
uint32_t natiny_window_get_render_calls(NatinyWindow id);

Returns the number of draw calls issued in the previous frame for a specific window. Useful for performance debugging.

Parameters

Name Type Description
id NatinyWindow Window handle from natiny_window_create

Returns

Type Description
uint32_t Draw call count, 0 if the window does not exist

Example

C
uint32_t n = natiny_window_get_render_calls(win);
printf("Draw calls: %u\n", n);