mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 07:57:30 +02:00
Merge pull request #16564 from ctrlaltdavid/DOC-239
DOC-239: Rates JSDoc
This commit is contained in:
commit
42b69332f7
3 changed files with 37 additions and 2 deletions
|
@ -22,7 +22,7 @@
|
||||||
/**jsdoc
|
/**jsdoc
|
||||||
* The <code>Desktop</code> API provides the dimensions of the computer screen, sets the opacity of the HUD surface, and
|
* 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.
|
* enables QML and HTML windows to be shown inside or outside of Interface.
|
||||||
*
|
*
|
||||||
* @namespace Desktop
|
* @namespace Desktop
|
||||||
*
|
*
|
||||||
* @hifi-interface
|
* @hifi-interface
|
||||||
|
|
|
@ -14,6 +14,41 @@
|
||||||
|
|
||||||
#include <display-plugins/DisplayPlugin.h>
|
#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 {
|
class RatesScriptingInterface : public QObject {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@ exports.handlers = {
|
||||||
'../../assignment-client/src/octree',
|
'../../assignment-client/src/octree',
|
||||||
'../../interface/src',
|
'../../interface/src',
|
||||||
'../../interface/src/assets',
|
'../../interface/src/assets',
|
||||||
//'../../interface/src/audio', Exlude AudioScope API from output.
|
//'../../interface/src/audio', Exclude AudioScope API from output.
|
||||||
'../../interface/src/avatar',
|
'../../interface/src/avatar',
|
||||||
'../../interface/src/commerce',
|
'../../interface/src/commerce',
|
||||||
'../../interface/src/java',
|
'../../interface/src/java',
|
||||||
|
|
Loading…
Reference in a new issue