Function gpu_stats
#include <macawgpu.h>int gpu_stats(
int *tris,
int *corners,
int *used,
int *made,
int *missed
);
Tells you how much was drawn, to help you find out what's slow.
Parameters
trisint *- Pass the address of an
intfor the triangles drawn since the lastgpu_clear.NULLskips it. cornersint *- Pass the address of an
intfor the corners sent since the lastgpu_clear.NULLskips it. usedint *- Pass the address of an
intfor how many times a saved drawing (display list) was drawn again.NULLskips it. madeint *- Pass the address of an
intfor how many display lists were made.NULLskips it. missedint *- Pass the address of an
intfor drawings worked out afresh instead.NULLskips it.
Returns int
The number of triangles drawn since the last gpu_clear.
In Textures, light and fog, with gpu_bindtexture, gpu_light, gpu_lightoff, gpu_ambient, gpu_shademodel, gpu_material, gpu_fog, gpu_pointsize.