Cogl.Onscreen.prototype.get_frame_counter
function get_frame_counter(): Number(gint64) { // Gjs wrapper for cogl_onscreen_get_frame_counter() }
Gets the value of the framebuffers frame counter. This is a counter that increases by one each time Cogl.Onscreen.prototype.swap_buffers or Cogl.Onscreen.prototype.swap_region is called.
Since 1.14
- Returns
the current frame counter value