目录

Frame Rate

Starting from version 1078, the API prefix has been changed from hbs to qg. The original prefix hbs is still supported.

Definition

API

Description

qg.setPreferredFramesPerSecond(number fps)

Changes the rendering frame rate.

requestAnimationFrame(function callback)

Requests an animation frame.

cancelAnimationFrame(number id)

Cancels a callback request registered using the requestAnimationFrame method.

[h2]qg.setPreferredFramesPerSecond(number fps)

[h2]requestAnimationFrame(function callback)

[h2]cancelAnimationFrame(number id)