KallistiOS git master
Independent SDK for the Sega Dreamcast
Loading...
Searching...
No Matches
Profiling

Rendering stats and metrics for profiling More...

Data Structures

struct  pvr_stats_t
 PVR statistics structure. More...
 

Functions

int pvr_get_vbl_count (void)
 Retrieve the current VBlank count.
 
int pvr_get_stats (pvr_stats_t *stat)
 Get the current statistics from the PVR.
 

Detailed Description

Rendering stats and metrics for profiling

Function Documentation

◆ pvr_get_stats()

int pvr_get_stats ( pvr_stats_t * stat)

Get the current statistics from the PVR.

This function fills in the pvr_stats_t structure passed in with the current statistics of the system.

Parameters
statThe statistics structure to fill in. Must not be NULL
Return values
0On success
-1If the PVR is not initialized

◆ pvr_get_vbl_count()

int pvr_get_vbl_count ( void )

Retrieve the current VBlank count.

This function retrieves the number of VBlank interrupts that have occurred since the PVR was initialized.

Returns
The number of VBlanks since init