Merge pull request #16564 from ctrlaltdavid/DOC-239

DOC-239: Rates JSDoc
This commit is contained in:
Brad Hefta-Gaub 2019-12-13 10:36:39 -08:00 committed by GitHub
commit 42b69332f7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 37 additions and 2 deletions

View file

@ -22,7 +22,7 @@
/**jsdoc
* The <code>Desktop</code> API provides the dimensions of the computer screen, sets the opacity of the HUD surface, and
* enables QML and HTML windows to be shown inside or outside of Interface.
*
*
* @namespace Desktop
*
* @hifi-interface

View file

@ -14,6 +14,41 @@
#include <display-plugins/DisplayPlugin.h>
/**jsdoc
* The <code>Rates</code> API provides some information on current rendering performance.
*
* @namespace Rates
*
* @hifi-interface
* @hifi-client-entity
* @hifi-avatar
*
* @property {number} render - The rate at which new GPU frames are being created, in Hz.
* <em>Read-only.</em>
* @property {number} present - The rate at which the display plugin is presenting to the display device, in Hz.
* <em>Read-only.</em>
* @property {number} newFrame - The rate at which the display plugin is presenting new GPU frames, in Hz.
* <em>Read-only.</em>
* @property {number} dropped - The rate at which the display plugin is dropping GPU frames, in Hz.
* <em>Read-only.</em>
* @property {number} simulation - The rate at which the game loop is running, in Hz.
* <em>Read-only.</em>
*
* @example <caption>Report current rendering rates.</caption>
* // The rates to report.
* var rates = [
* "render",
* "present",
* "newFrame",
* "dropped",
* "simulation"
* ];
*
* // Report the rates.
* for (var i = 0; i < rates.length; i++) {
* print("Rates." + rates[i], "=", Rates[rates[i]]);
* }
*/
class RatesScriptingInterface : public QObject {
Q_OBJECT

View file

@ -26,7 +26,7 @@ exports.handlers = {
'../../assignment-client/src/octree',
'../../interface/src',
'../../interface/src/assets',
//'../../interface/src/audio', Exlude AudioScope API from output.
//'../../interface/src/audio', Exclude AudioScope API from output.
'../../interface/src/avatar',
'../../interface/src/commerce',
'../../interface/src/java',