- class arcade.gl.Query(ctx: Context, samples=True, time=True, primitives=True)#
A query object to perform low level measurements of OpenGL rendering calls.
The best way to create a program instance is through
query = ctx.query() with query: geometry.render(..) print('samples_passed:', query.samples_passed) print('time_elapsed:', query.time_elapsed) print('primitives_generated:', query.primitives_generated)
- property primitives_generated: int#
How many primitives a vertex or geometry shader processed. When using a geometry shader this only counts the primitives actually emitted.
Destroy the underlying OpenGL resource. Don’t use this unless you know exactly what you are doing.