lovr.graphics.getStats

Returns graphics-related performance statistics for the current frame.

stats = lovr.graphics.getStats()

Arguments

None

Returns

NameTypeDescription
statstableThe table of stats.
.drawcallsnumberThe number of draw calls.
.shaderswitchesnumberThe number of times the shader has been switched.

See also