Macaw OS C reference

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 int for the triangles drawn since the last gpu_clear. NULL skips it.
cornersint *
Pass the address of an int for the corners sent since the last gpu_clear. NULL skips it.
usedint *
Pass the address of an int for how many times a saved drawing (display list) was drawn again. NULL skips it.
madeint *
Pass the address of an int for how many display lists were made. NULL skips it.
missedint *
Pass the address of an int for drawings worked out afresh instead. NULL skips 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.