KallistiOS git master
Independent SDK for the Sega Dreamcast
Loading...
Searching...
No Matches
pvrmark_strips_direct.c File Reference
#include <kos.h>
#include <stdlib.h>
#include <time.h>
#include <limits.h>

Enumerations

enum  { PHASE_HALVE , PHASE_INCR , PHASE_DECR , PHASE_FINAL }
 

Functions

static void running_stats (void)
 
static void stats (void)
 
static int check_start (void)
 
static void setup (void)
 
static int getnum (int *seed, int mn)
 
static void get_vert (int *seed, int *x, int *y, int *col)
 
static void do_frame (void)
 
void switch_tests (int ppf)
 
void check_switch (void)
 
int main (int argc, char **argv)
 

Variables

static pvr_init_params_t pvr_params
 
static int polycnt
 
static int phase = PHASE_HALVE
 
static float avgfps = -1
 
static pvr_poly_hdr_t hdr
 
static time_t begin
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
PHASE_HALVE 
PHASE_INCR 
PHASE_DECR 
PHASE_FINAL 

Function Documentation

◆ check_start()

static int check_start ( void )
static

◆ check_switch()

void check_switch ( void )

◆ do_frame()

◆ get_vert()

static void get_vert ( int * seed,
int * x,
int * y,
int * col )
inlinestatic

References getnum, x, and y.

Referenced by do_frame().

◆ getnum()

static int getnum ( int * seed,
int mn )
inlinestatic

◆ main()

int main ( int argc,
char ** argv )

◆ running_stats()

static void running_stats ( void )
static

References avgfps, pvr_get_stats(), and stats().

Referenced by main().

◆ setup()

◆ stats()

static void stats ( void )
static

References DBG_INFO, dbglog, pvr_get_stats(), and stats().

Referenced by main(), running_stats(), and stats().

◆ switch_tests()

void switch_tests ( int ppf)

References avgfps, polycnt, and printf.

Referenced by check_switch(), and main().

Variable Documentation

◆ avgfps

float avgfps = -1
static

◆ begin

time_t begin
static

Referenced by check_switch(), and main().

◆ hdr

pvr_poly_hdr_t hdr
static

Referenced by do_frame(), and setup().

◆ phase

int phase = PHASE_HALVE
static

Referenced by check_switch().

◆ polycnt

int polycnt
static

◆ pvr_params

pvr_init_params_t pvr_params
static
Initial value:
= {
512 * 1024, 0, 0, 0, 0, 0
}
#define PVR_BINSIZE_16
16-word (64-byte) length
Definition pvr.h:978
#define PVR_BINSIZE_0
0-length (disables the list)
Definition pvr.h:976

Referenced by setup().