lovr.graphics.setTimingEnabled

Edit

Enables or disables timing stats. When enabled, Pass:getStats will return submitTime and gpuTime durations. Timing is enabled by default when t.graphics.debug is set in lovr.conf. Timing has a small amount of overhead, so it should only be enabled when needed.

lovr.graphics.setTimingEnabled(enable)

Arguments

NameTypeDescription
enableboolean Whether timing should be enabled.

Returns

Nothing

See also