1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2025-06-13 13:04:03 +00:00
tobspr_shapez.io/docs/ast/source/game/dynamic_tickrate.js.json
2021-02-26 15:20:37 +01:00

22647 lines
600 KiB
JSON

{
"type": "File",
"start": 0,
"end": 3821,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 126,
"column": 0
}
},
"program": {
"type": "Program",
"start": 0,
"end": 3821,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 126,
"column": 0
}
},
"sourceType": "module",
"body": [
{
"type": "ImportDeclaration",
"start": 0,
"end": 34,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 34
}
},
"specifiers": [
{
"type": "ImportSpecifier",
"start": 9,
"end": 17,
"loc": {
"start": {
"line": 1,
"column": 9
},
"end": {
"line": 1,
"column": 17
}
},
"imported": {
"type": "Identifier",
"start": 9,
"end": 17,
"loc": {
"start": {
"line": 1,
"column": 9
},
"end": {
"line": 1,
"column": 17
},
"identifierName": "GameRoot"
},
"name": "GameRoot"
},
"local": {
"type": "Identifier",
"start": 9,
"end": 17,
"loc": {
"start": {
"line": 1,
"column": 9
},
"end": {
"line": 1,
"column": 17
},
"identifierName": "GameRoot"
},
"name": "GameRoot"
}
}
],
"source": {
"type": "StringLiteral",
"start": 25,
"end": 33,
"loc": {
"start": {
"line": 1,
"column": 25
},
"end": {
"line": 1,
"column": 33
}
},
"extra": {
"rawValue": "./root",
"raw": "\"./root\""
},
"value": "./root"
}
},
{
"type": "ImportDeclaration",
"start": 36,
"end": 83,
"loc": {
"start": {
"line": 2,
"column": 0
},
"end": {
"line": 2,
"column": 47
}
},
"specifiers": [
{
"type": "ImportSpecifier",
"start": 45,
"end": 57,
"loc": {
"start": {
"line": 2,
"column": 9
},
"end": {
"line": 2,
"column": 21
}
},
"imported": {
"type": "Identifier",
"start": 45,
"end": 57,
"loc": {
"start": {
"line": 2,
"column": 9
},
"end": {
"line": 2,
"column": 21
},
"identifierName": "createLogger"
},
"name": "createLogger"
},
"local": {
"type": "Identifier",
"start": 45,
"end": 57,
"loc": {
"start": {
"line": 2,
"column": 9
},
"end": {
"line": 2,
"column": 21
},
"identifierName": "createLogger"
},
"name": "createLogger"
}
}
],
"source": {
"type": "StringLiteral",
"start": 65,
"end": 82,
"loc": {
"start": {
"line": 2,
"column": 29
},
"end": {
"line": 2,
"column": 46
}
},
"extra": {
"rawValue": "../core/logging",
"raw": "\"../core/logging\""
},
"value": "../core/logging"
}
},
{
"type": "ImportDeclaration",
"start": 85,
"end": 131,
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
"line": 3,
"column": 46
}
},
"specifiers": [
{
"type": "ImportSpecifier",
"start": 94,
"end": 106,
"loc": {
"start": {
"line": 3,
"column": 9
},
"end": {
"line": 3,
"column": 21
}
},
"imported": {
"type": "Identifier",
"start": 94,
"end": 106,
"loc": {
"start": {
"line": 3,
"column": 9
},
"end": {
"line": 3,
"column": 21
},
"identifierName": "globalConfig"
},
"name": "globalConfig"
},
"local": {
"type": "Identifier",
"start": 94,
"end": 106,
"loc": {
"start": {
"line": 3,
"column": 9
},
"end": {
"line": 3,
"column": 21
},
"identifierName": "globalConfig"
},
"name": "globalConfig"
}
}
],
"source": {
"type": "StringLiteral",
"start": 114,
"end": 130,
"loc": {
"start": {
"line": 3,
"column": 29
},
"end": {
"line": 3,
"column": 45
}
},
"extra": {
"rawValue": "../core/config",
"raw": "\"../core/config\""
},
"value": "../core/config"
}
},
{
"type": "VariableDeclaration",
"start": 135,
"end": 183,
"loc": {
"start": {
"line": 5,
"column": 0
},
"end": {
"line": 5,
"column": 48
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 141,
"end": 182,
"loc": {
"start": {
"line": 5,
"column": 6
},
"end": {
"line": 5,
"column": 47
}
},
"id": {
"type": "Identifier",
"start": 141,
"end": 147,
"loc": {
"start": {
"line": 5,
"column": 6
},
"end": {
"line": 5,
"column": 12
},
"identifierName": "logger"
},
"name": "logger"
},
"init": {
"type": "CallExpression",
"start": 150,
"end": 182,
"loc": {
"start": {
"line": 5,
"column": 15
},
"end": {
"line": 5,
"column": 47
}
},
"callee": {
"type": "Identifier",
"start": 150,
"end": 162,
"loc": {
"start": {
"line": 5,
"column": 15
},
"end": {
"line": 5,
"column": 27
},
"identifierName": "createLogger"
},
"name": "createLogger"
},
"arguments": [
{
"type": "StringLiteral",
"start": 163,
"end": 181,
"loc": {
"start": {
"line": 5,
"column": 28
},
"end": {
"line": 5,
"column": 46
}
},
"extra": {
"rawValue": "dynamic_tickrate",
"raw": "\"dynamic_tickrate\""
},
"value": "dynamic_tickrate"
}
]
}
}
],
"kind": "const"
},
{
"type": "VariableDeclaration",
"start": 187,
"end": 220,
"loc": {
"start": {
"line": 7,
"column": 0
},
"end": {
"line": 7,
"column": 33
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 193,
"end": 219,
"loc": {
"start": {
"line": 7,
"column": 6
},
"end": {
"line": 7,
"column": 32
}
},
"id": {
"type": "Identifier",
"start": 193,
"end": 212,
"loc": {
"start": {
"line": 7,
"column": 6
},
"end": {
"line": 7,
"column": 25
},
"identifierName": "fpsAccumulationTime"
},
"name": "fpsAccumulationTime"
},
"init": {
"type": "NumericLiteral",
"start": 215,
"end": 219,
"loc": {
"start": {
"line": 7,
"column": 28
},
"end": {
"line": 7,
"column": 32
}
},
"extra": {
"rawValue": 1000,
"raw": "1000"
},
"value": 1000
}
}
],
"kind": "const"
},
{
"type": "ExportNamedDeclaration",
"start": 224,
"end": 3819,
"loc": {
"start": {
"line": 9,
"column": 0
},
"end": {
"line": 125,
"column": 1
}
},
"specifiers": [],
"source": null,
"declaration": {
"type": "ClassDeclaration",
"start": 231,
"end": 3819,
"loc": {
"start": {
"line": 9,
"column": 7
},
"end": {
"line": 125,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 237,
"end": 252,
"loc": {
"start": {
"line": 9,
"column": 13
},
"end": {
"line": 9,
"column": 28
},
"identifierName": "DynamicTickrate"
},
"name": "DynamicTickrate"
},
"superClass": null,
"body": {
"type": "ClassBody",
"start": 253,
"end": 3819,
"loc": {
"start": {
"line": 9,
"column": 29
},
"end": {
"line": 125,
"column": 1
}
},
"body": [
{
"type": "ClassMethod",
"start": 317,
"end": 779,
"loc": {
"start": {
"line": 14,
"column": 4
},
"end": {
"line": 31,
"column": 5
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 317,
"end": 328,
"loc": {
"start": {
"line": 14,
"column": 4
},
"end": {
"line": 14,
"column": 15
},
"identifierName": "constructor"
},
"name": "constructor",
"leadingComments": null
},
"kind": "constructor",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 329,
"end": 333,
"loc": {
"start": {
"line": 14,
"column": 16
},
"end": {
"line": 14,
"column": 20
},
"identifierName": "root"
},
"name": "root"
}
],
"body": {
"type": "BlockStatement",
"start": 335,
"end": 779,
"loc": {
"start": {
"line": 14,
"column": 22
},
"end": {
"line": 31,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 346,
"end": 363,
"loc": {
"start": {
"line": 15,
"column": 8
},
"end": {
"line": 15,
"column": 25
}
},
"expression": {
"type": "AssignmentExpression",
"start": 346,
"end": 362,
"loc": {
"start": {
"line": 15,
"column": 8
},
"end": {
"line": 15,
"column": 24
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 346,
"end": 355,
"loc": {
"start": {
"line": 15,
"column": 8
},
"end": {
"line": 15,
"column": 17
}
},
"object": {
"type": "ThisExpression",
"start": 346,
"end": 350,
"loc": {
"start": {
"line": 15,
"column": 8
},
"end": {
"line": 15,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 351,
"end": 355,
"loc": {
"start": {
"line": 15,
"column": 13
},
"end": {
"line": 15,
"column": 17
},
"identifierName": "root"
},
"name": "root"
},
"computed": false
},
"right": {
"type": "Identifier",
"start": 358,
"end": 362,
"loc": {
"start": {
"line": 15,
"column": 20
},
"end": {
"line": 15,
"column": 24
},
"identifierName": "root"
},
"name": "root"
}
}
},
{
"type": "ExpressionStatement",
"start": 375,
"end": 404,
"loc": {
"start": {
"line": 17,
"column": 8
},
"end": {
"line": 17,
"column": 37
}
},
"expression": {
"type": "AssignmentExpression",
"start": 375,
"end": 403,
"loc": {
"start": {
"line": 17,
"column": 8
},
"end": {
"line": 17,
"column": 36
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 375,
"end": 396,
"loc": {
"start": {
"line": 17,
"column": 8
},
"end": {
"line": 17,
"column": 29
}
},
"object": {
"type": "ThisExpression",
"start": 375,
"end": 379,
"loc": {
"start": {
"line": 17,
"column": 8
},
"end": {
"line": 17,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 380,
"end": 396,
"loc": {
"start": {
"line": 17,
"column": 13
},
"end": {
"line": 17,
"column": 29
},
"identifierName": "currentTickStart"
},
"name": "currentTickStart"
},
"computed": false
},
"right": {
"type": "NullLiteral",
"start": 399,
"end": 403,
"loc": {
"start": {
"line": 17,
"column": 32
},
"end": {
"line": 17,
"column": 36
}
}
}
}
},
{
"type": "ExpressionStatement",
"start": 414,
"end": 438,
"loc": {
"start": {
"line": 18,
"column": 8
},
"end": {
"line": 18,
"column": 32
}
},
"expression": {
"type": "AssignmentExpression",
"start": 414,
"end": 437,
"loc": {
"start": {
"line": 18,
"column": 8
},
"end": {
"line": 18,
"column": 31
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 414,
"end": 432,
"loc": {
"start": {
"line": 18,
"column": 8
},
"end": {
"line": 18,
"column": 26
}
},
"object": {
"type": "ThisExpression",
"start": 414,
"end": 418,
"loc": {
"start": {
"line": 18,
"column": 8
},
"end": {
"line": 18,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 419,
"end": 432,
"loc": {
"start": {
"line": 18,
"column": 13
},
"end": {
"line": 18,
"column": 26
},
"identifierName": "capturedTicks"
},
"name": "capturedTicks"
},
"computed": false
},
"right": {
"type": "ArrayExpression",
"start": 435,
"end": 437,
"loc": {
"start": {
"line": 18,
"column": 29
},
"end": {
"line": 18,
"column": 31
}
},
"elements": []
}
}
},
{
"type": "ExpressionStatement",
"start": 448,
"end": 477,
"loc": {
"start": {
"line": 19,
"column": 8
},
"end": {
"line": 19,
"column": 37
}
},
"expression": {
"type": "AssignmentExpression",
"start": 448,
"end": 476,
"loc": {
"start": {
"line": 19,
"column": 8
},
"end": {
"line": 19,
"column": 36
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 448,
"end": 472,
"loc": {
"start": {
"line": 19,
"column": 8
},
"end": {
"line": 19,
"column": 32
}
},
"object": {
"type": "ThisExpression",
"start": 448,
"end": 452,
"loc": {
"start": {
"line": 19,
"column": 8
},
"end": {
"line": 19,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 453,
"end": 472,
"loc": {
"start": {
"line": 19,
"column": 13
},
"end": {
"line": 19,
"column": 32
},
"identifierName": "averageTickDuration"
},
"name": "averageTickDuration"
},
"computed": false
},
"right": {
"type": "NumericLiteral",
"start": 475,
"end": 476,
"loc": {
"start": {
"line": 19,
"column": 35
},
"end": {
"line": 19,
"column": 36
}
},
"extra": {
"rawValue": 0,
"raw": "0"
},
"value": 0
}
}
},
{
"type": "ExpressionStatement",
"start": 489,
"end": 513,
"loc": {
"start": {
"line": 21,
"column": 8
},
"end": {
"line": 21,
"column": 32
}
},
"expression": {
"type": "AssignmentExpression",
"start": 489,
"end": 512,
"loc": {
"start": {
"line": 21,
"column": 8
},
"end": {
"line": 21,
"column": 31
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 489,
"end": 508,
"loc": {
"start": {
"line": 21,
"column": 8
},
"end": {
"line": 21,
"column": 27
}
},
"object": {
"type": "ThisExpression",
"start": 489,
"end": 493,
"loc": {
"start": {
"line": 21,
"column": 8
},
"end": {
"line": 21,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 494,
"end": 508,
"loc": {
"start": {
"line": 21,
"column": 13
},
"end": {
"line": 21,
"column": 27
},
"identifierName": "accumulatedFps"
},
"name": "accumulatedFps"
},
"computed": false
},
"right": {
"type": "NumericLiteral",
"start": 511,
"end": 512,
"loc": {
"start": {
"line": 21,
"column": 30
},
"end": {
"line": 21,
"column": 31
}
},
"extra": {
"rawValue": 0,
"raw": "0"
},
"value": 0
}
}
},
{
"type": "ExpressionStatement",
"start": 523,
"end": 557,
"loc": {
"start": {
"line": 22,
"column": 8
},
"end": {
"line": 22,
"column": 42
}
},
"expression": {
"type": "AssignmentExpression",
"start": 523,
"end": 556,
"loc": {
"start": {
"line": 22,
"column": 8
},
"end": {
"line": 22,
"column": 41
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 523,
"end": 552,
"loc": {
"start": {
"line": 22,
"column": 8
},
"end": {
"line": 22,
"column": 37
}
},
"object": {
"type": "ThisExpression",
"start": 523,
"end": 527,
"loc": {
"start": {
"line": 22,
"column": 8
},
"end": {
"line": 22,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 528,
"end": 552,
"loc": {
"start": {
"line": 22,
"column": 13
},
"end": {
"line": 22,
"column": 37
},
"identifierName": "accumulatedFpsLastUpdate"
},
"name": "accumulatedFpsLastUpdate"
},
"computed": false
},
"right": {
"type": "NumericLiteral",
"start": 555,
"end": 556,
"loc": {
"start": {
"line": 22,
"column": 40
},
"end": {
"line": 22,
"column": 41
}
},
"extra": {
"rawValue": 0,
"raw": "0"
},
"value": 0
}
}
},
{
"type": "ExpressionStatement",
"start": 569,
"end": 590,
"loc": {
"start": {
"line": 24,
"column": 8
},
"end": {
"line": 24,
"column": 29
}
},
"expression": {
"type": "AssignmentExpression",
"start": 569,
"end": 589,
"loc": {
"start": {
"line": 24,
"column": 8
},
"end": {
"line": 24,
"column": 28
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 569,
"end": 584,
"loc": {
"start": {
"line": 24,
"column": 8
},
"end": {
"line": 24,
"column": 23
}
},
"object": {
"type": "ThisExpression",
"start": 569,
"end": 573,
"loc": {
"start": {
"line": 24,
"column": 8
},
"end": {
"line": 24,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 574,
"end": 584,
"loc": {
"start": {
"line": 24,
"column": 13
},
"end": {
"line": 24,
"column": 23
},
"identifierName": "averageFps"
},
"name": "averageFps"
},
"computed": false
},
"right": {
"type": "NumericLiteral",
"start": 587,
"end": 589,
"loc": {
"start": {
"line": 24,
"column": 26
},
"end": {
"line": 24,
"column": 28
}
},
"extra": {
"rawValue": 60,
"raw": "60"
},
"value": 60
}
}
},
{
"type": "ExpressionStatement",
"start": 602,
"end": 659,
"loc": {
"start": {
"line": 26,
"column": 8
},
"end": {
"line": 26,
"column": 65
}
},
"expression": {
"type": "CallExpression",
"start": 602,
"end": 658,
"loc": {
"start": {
"line": 26,
"column": 8
},
"end": {
"line": 26,
"column": 64
}
},
"callee": {
"type": "MemberExpression",
"start": 602,
"end": 618,
"loc": {
"start": {
"line": 26,
"column": 8
},
"end": {
"line": 26,
"column": 24
}
},
"object": {
"type": "ThisExpression",
"start": 602,
"end": 606,
"loc": {
"start": {
"line": 26,
"column": 8
},
"end": {
"line": 26,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 607,
"end": 618,
"loc": {
"start": {
"line": 26,
"column": 13
},
"end": {
"line": 26,
"column": 24
},
"identifierName": "setTickRate"
},
"name": "setTickRate"
},
"computed": false
},
"arguments": [
{
"type": "CallExpression",
"start": 619,
"end": 657,
"loc": {
"start": {
"line": 26,
"column": 25
},
"end": {
"line": 26,
"column": 63
}
},
"callee": {
"type": "MemberExpression",
"start": 619,
"end": 655,
"loc": {
"start": {
"line": 26,
"column": 25
},
"end": {
"line": 26,
"column": 61
}
},
"object": {
"type": "MemberExpression",
"start": 619,
"end": 641,
"loc": {
"start": {
"line": 26,
"column": 25
},
"end": {
"line": 26,
"column": 47
}
},
"object": {
"type": "MemberExpression",
"start": 619,
"end": 632,
"loc": {
"start": {
"line": 26,
"column": 25
},
"end": {
"line": 26,
"column": 38
}
},
"object": {
"type": "MemberExpression",
"start": 619,
"end": 628,
"loc": {
"start": {
"line": 26,
"column": 25
},
"end": {
"line": 26,
"column": 34
}
},
"object": {
"type": "ThisExpression",
"start": 619,
"end": 623,
"loc": {
"start": {
"line": 26,
"column": 25
},
"end": {
"line": 26,
"column": 29
}
}
},
"property": {
"type": "Identifier",
"start": 624,
"end": 628,
"loc": {
"start": {
"line": 26,
"column": 30
},
"end": {
"line": 26,
"column": 34
},
"identifierName": "root"
},
"name": "root"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 629,
"end": 632,
"loc": {
"start": {
"line": 26,
"column": 35
},
"end": {
"line": 26,
"column": 38
},
"identifierName": "app"
},
"name": "app"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 633,
"end": 641,
"loc": {
"start": {
"line": 26,
"column": 39
},
"end": {
"line": 26,
"column": 47
},
"identifierName": "settings"
},
"name": "settings"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 642,
"end": 655,
"loc": {
"start": {
"line": 26,
"column": 48
},
"end": {
"line": 26,
"column": 61
},
"identifierName": "getDesiredFps"
},
"name": "getDesiredFps"
},
"computed": false
},
"arguments": []
}
]
}
},
{
"type": "IfStatement",
"start": 671,
"end": 772,
"loc": {
"start": {
"line": 28,
"column": 8
},
"end": {
"line": 30,
"column": 9
}
},
"test": {
"type": "LogicalExpression",
"start": 675,
"end": 722,
"loc": {
"start": {
"line": 28,
"column": 12
},
"end": {
"line": 28,
"column": 59
}
},
"left": {
"type": "Identifier",
"start": 675,
"end": 683,
"loc": {
"start": {
"line": 28,
"column": 12
},
"end": {
"line": 28,
"column": 20
},
"identifierName": "G_IS_DEV"
},
"name": "G_IS_DEV"
},
"operator": "&&",
"right": {
"type": "MemberExpression",
"start": 687,
"end": 722,
"loc": {
"start": {
"line": 28,
"column": 24
},
"end": {
"line": 28,
"column": 59
}
},
"object": {
"type": "MemberExpression",
"start": 687,
"end": 705,
"loc": {
"start": {
"line": 28,
"column": 24
},
"end": {
"line": 28,
"column": 42
}
},
"object": {
"type": "Identifier",
"start": 687,
"end": 699,
"loc": {
"start": {
"line": 28,
"column": 24
},
"end": {
"line": 28,
"column": 36
},
"identifierName": "globalConfig"
},
"name": "globalConfig"
},
"property": {
"type": "Identifier",
"start": 700,
"end": 705,
"loc": {
"start": {
"line": 28,
"column": 37
},
"end": {
"line": 28,
"column": 42
},
"identifierName": "debug"
},
"name": "debug"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 706,
"end": 722,
"loc": {
"start": {
"line": 28,
"column": 43
},
"end": {
"line": 28,
"column": 59
},
"identifierName": "renderForTrailer"
},
"name": "renderForTrailer"
},
"computed": false
}
},
"consequent": {
"type": "BlockStatement",
"start": 724,
"end": 772,
"loc": {
"start": {
"line": 28,
"column": 61
},
"end": {
"line": 30,
"column": 9
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 739,
"end": 761,
"loc": {
"start": {
"line": 29,
"column": 12
},
"end": {
"line": 29,
"column": 34
}
},
"expression": {
"type": "CallExpression",
"start": 739,
"end": 760,
"loc": {
"start": {
"line": 29,
"column": 12
},
"end": {
"line": 29,
"column": 33
}
},
"callee": {
"type": "MemberExpression",
"start": 739,
"end": 755,
"loc": {
"start": {
"line": 29,
"column": 12
},
"end": {
"line": 29,
"column": 28
}
},
"object": {
"type": "ThisExpression",
"start": 739,
"end": 743,
"loc": {
"start": {
"line": 29,
"column": 12
},
"end": {
"line": 29,
"column": 16
}
}
},
"property": {
"type": "Identifier",
"start": 744,
"end": 755,
"loc": {
"start": {
"line": 29,
"column": 17
},
"end": {
"line": 29,
"column": 28
},
"identifierName": "setTickRate"
},
"name": "setTickRate"
},
"computed": false
},
"arguments": [
{
"type": "NumericLiteral",
"start": 756,
"end": 759,
"loc": {
"start": {
"line": 29,
"column": 29
},
"end": {
"line": 29,
"column": 32
}
},
"extra": {
"rawValue": 300,
"raw": "300"
},
"value": 300
}
]
}
}
],
"directives": []
},
"alternate": null
}
],
"directives": []
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n *\r\n * @param {GameRoot} root\r\n ",
"start": 260,
"end": 311,
"loc": {
"start": {
"line": 10,
"column": 4
},
"end": {
"line": 13,
"column": 7
}
}
}
]
},
{
"type": "ClassMethod",
"start": 787,
"end": 1223,
"loc": {
"start": {
"line": 33,
"column": 4
},
"end": {
"line": 44,
"column": 5
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 787,
"end": 802,
"loc": {
"start": {
"line": 33,
"column": 4
},
"end": {
"line": 33,
"column": 19
},
"identifierName": "onFrameRendered"
},
"name": "onFrameRendered"
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 805,
"end": 1223,
"loc": {
"start": {
"line": 33,
"column": 22
},
"end": {
"line": 44,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 816,
"end": 838,
"loc": {
"start": {
"line": 34,
"column": 8
},
"end": {
"line": 34,
"column": 30
}
},
"expression": {
"type": "UpdateExpression",
"start": 816,
"end": 837,
"loc": {
"start": {
"line": 34,
"column": 8
},
"end": {
"line": 34,
"column": 29
}
},
"operator": "++",
"prefix": true,
"argument": {
"type": "MemberExpression",
"start": 818,
"end": 837,
"loc": {
"start": {
"line": 34,
"column": 10
},
"end": {
"line": 34,
"column": 29
}
},
"object": {
"type": "ThisExpression",
"start": 818,
"end": 822,
"loc": {
"start": {
"line": 34,
"column": 10
},
"end": {
"line": 34,
"column": 14
}
}
},
"property": {
"type": "Identifier",
"start": 823,
"end": 837,
"loc": {
"start": {
"line": 34,
"column": 15
},
"end": {
"line": 34,
"column": 29
},
"identifierName": "accumulatedFps"
},
"name": "accumulatedFps"
},
"computed": false
},
"extra": {
"parenthesizedArgument": false
}
}
},
{
"type": "VariableDeclaration",
"start": 850,
"end": 880,
"loc": {
"start": {
"line": 36,
"column": 8
},
"end": {
"line": 36,
"column": 38
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 856,
"end": 879,
"loc": {
"start": {
"line": 36,
"column": 14
},
"end": {
"line": 36,
"column": 37
}
},
"id": {
"type": "Identifier",
"start": 856,
"end": 859,
"loc": {
"start": {
"line": 36,
"column": 14
},
"end": {
"line": 36,
"column": 17
},
"identifierName": "now"
},
"name": "now"
},
"init": {
"type": "CallExpression",
"start": 862,
"end": 879,
"loc": {
"start": {
"line": 36,
"column": 20
},
"end": {
"line": 36,
"column": 37
}
},
"callee": {
"type": "MemberExpression",
"start": 862,
"end": 877,
"loc": {
"start": {
"line": 36,
"column": 20
},
"end": {
"line": 36,
"column": 35
}
},
"object": {
"type": "Identifier",
"start": 862,
"end": 873,
"loc": {
"start": {
"line": 36,
"column": 20
},
"end": {
"line": 36,
"column": 31
},
"identifierName": "performance"
},
"name": "performance"
},
"property": {
"type": "Identifier",
"start": 874,
"end": 877,
"loc": {
"start": {
"line": 36,
"column": 32
},
"end": {
"line": 36,
"column": 35
},
"identifierName": "now"
},
"name": "now"
},
"computed": false
},
"arguments": []
}
}
],
"kind": "const"
},
{
"type": "VariableDeclaration",
"start": 890,
"end": 947,
"loc": {
"start": {
"line": 37,
"column": 8
},
"end": {
"line": 37,
"column": 65
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 896,
"end": 946,
"loc": {
"start": {
"line": 37,
"column": 14
},
"end": {
"line": 37,
"column": 64
}
},
"id": {
"type": "Identifier",
"start": 896,
"end": 908,
"loc": {
"start": {
"line": 37,
"column": 14
},
"end": {
"line": 37,
"column": 26
},
"identifierName": "timeDuration"
},
"name": "timeDuration"
},
"init": {
"type": "BinaryExpression",
"start": 911,
"end": 946,
"loc": {
"start": {
"line": 37,
"column": 29
},
"end": {
"line": 37,
"column": 64
}
},
"left": {
"type": "Identifier",
"start": 911,
"end": 914,
"loc": {
"start": {
"line": 37,
"column": 29
},
"end": {
"line": 37,
"column": 32
},
"identifierName": "now"
},
"name": "now"
},
"operator": "-",
"right": {
"type": "MemberExpression",
"start": 917,
"end": 946,
"loc": {
"start": {
"line": 37,
"column": 35
},
"end": {
"line": 37,
"column": 64
}
},
"object": {
"type": "ThisExpression",
"start": 917,
"end": 921,
"loc": {
"start": {
"line": 37,
"column": 35
},
"end": {
"line": 37,
"column": 39
}
}
},
"property": {
"type": "Identifier",
"start": 922,
"end": 946,
"loc": {
"start": {
"line": 37,
"column": 40
},
"end": {
"line": 37,
"column": 64
},
"identifierName": "accumulatedFpsLastUpdate"
},
"name": "accumulatedFpsLastUpdate"
},
"computed": false
}
}
}
],
"kind": "const"
},
{
"type": "IfStatement",
"start": 957,
"end": 1216,
"loc": {
"start": {
"line": 38,
"column": 8
},
"end": {
"line": 43,
"column": 9
}
},
"test": {
"type": "BinaryExpression",
"start": 961,
"end": 995,
"loc": {
"start": {
"line": 38,
"column": 12
},
"end": {
"line": 38,
"column": 46
}
},
"left": {
"type": "Identifier",
"start": 961,
"end": 973,
"loc": {
"start": {
"line": 38,
"column": 12
},
"end": {
"line": 38,
"column": 24
},
"identifierName": "timeDuration"
},
"name": "timeDuration"
},
"operator": ">",
"right": {
"type": "Identifier",
"start": 976,
"end": 995,
"loc": {
"start": {
"line": 38,
"column": 27
},
"end": {
"line": 38,
"column": 46
},
"identifierName": "fpsAccumulationTime"
},
"name": "fpsAccumulationTime"
}
},
"consequent": {
"type": "BlockStatement",
"start": 997,
"end": 1216,
"loc": {
"start": {
"line": 38,
"column": 48
},
"end": {
"line": 43,
"column": 9
}
},
"body": [
{
"type": "VariableDeclaration",
"start": 1012,
"end": 1078,
"loc": {
"start": {
"line": 39,
"column": 12
},
"end": {
"line": 39,
"column": 78
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 1018,
"end": 1077,
"loc": {
"start": {
"line": 39,
"column": 18
},
"end": {
"line": 39,
"column": 77
}
},
"id": {
"type": "Identifier",
"start": 1018,
"end": 1024,
"loc": {
"start": {
"line": 39,
"column": 18
},
"end": {
"line": 39,
"column": 24
},
"identifierName": "avgFps"
},
"name": "avgFps"
},
"init": {
"type": "BinaryExpression",
"start": 1027,
"end": 1077,
"loc": {
"start": {
"line": 39,
"column": 27
},
"end": {
"line": 39,
"column": 77
}
},
"left": {
"type": "BinaryExpression",
"start": 1028,
"end": 1069,
"loc": {
"start": {
"line": 39,
"column": 28
},
"end": {
"line": 39,
"column": 69
}
},
"left": {
"type": "MemberExpression",
"start": 1028,
"end": 1047,
"loc": {
"start": {
"line": 39,
"column": 28
},
"end": {
"line": 39,
"column": 47
}
},
"object": {
"type": "ThisExpression",
"start": 1028,
"end": 1032,
"loc": {
"start": {
"line": 39,
"column": 28
},
"end": {
"line": 39,
"column": 32
}
}
},
"property": {
"type": "Identifier",
"start": 1033,
"end": 1047,
"loc": {
"start": {
"line": 39,
"column": 33
},
"end": {
"line": 39,
"column": 47
},
"identifierName": "accumulatedFps"
},
"name": "accumulatedFps"
},
"computed": false
},
"operator": "/",
"right": {
"type": "Identifier",
"start": 1050,
"end": 1069,
"loc": {
"start": {
"line": 39,
"column": 50
},
"end": {
"line": 39,
"column": 69
},
"identifierName": "fpsAccumulationTime"
},
"name": "fpsAccumulationTime"
},
"extra": {
"parenthesized": true,
"parenStart": 1027
}
},
"operator": "*",
"right": {
"type": "NumericLiteral",
"start": 1073,
"end": 1077,
"loc": {
"start": {
"line": 39,
"column": 73
},
"end": {
"line": 39,
"column": 77
}
},
"extra": {
"rawValue": 1000,
"raw": "1000"
},
"value": 1000
}
}
}
],
"kind": "const"
},
{
"type": "ExpressionStatement",
"start": 1092,
"end": 1117,
"loc": {
"start": {
"line": 40,
"column": 12
},
"end": {
"line": 40,
"column": 37
}
},
"expression": {
"type": "AssignmentExpression",
"start": 1092,
"end": 1116,
"loc": {
"start": {
"line": 40,
"column": 12
},
"end": {
"line": 40,
"column": 36
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 1092,
"end": 1107,
"loc": {
"start": {
"line": 40,
"column": 12
},
"end": {
"line": 40,
"column": 27
}
},
"object": {
"type": "ThisExpression",
"start": 1092,
"end": 1096,
"loc": {
"start": {
"line": 40,
"column": 12
},
"end": {
"line": 40,
"column": 16
}
}
},
"property": {
"type": "Identifier",
"start": 1097,
"end": 1107,
"loc": {
"start": {
"line": 40,
"column": 17
},
"end": {
"line": 40,
"column": 27
},
"identifierName": "averageFps"
},
"name": "averageFps"
},
"computed": false
},
"right": {
"type": "Identifier",
"start": 1110,
"end": 1116,
"loc": {
"start": {
"line": 40,
"column": 30
},
"end": {
"line": 40,
"column": 36
},
"identifierName": "avgFps"
},
"name": "avgFps"
}
}
},
{
"type": "ExpressionStatement",
"start": 1131,
"end": 1155,
"loc": {
"start": {
"line": 41,
"column": 12
},
"end": {
"line": 41,
"column": 36
}
},
"expression": {
"type": "AssignmentExpression",
"start": 1131,
"end": 1154,
"loc": {
"start": {
"line": 41,
"column": 12
},
"end": {
"line": 41,
"column": 35
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 1131,
"end": 1150,
"loc": {
"start": {
"line": 41,
"column": 12
},
"end": {
"line": 41,
"column": 31
}
},
"object": {
"type": "ThisExpression",
"start": 1131,
"end": 1135,
"loc": {
"start": {
"line": 41,
"column": 12
},
"end": {
"line": 41,
"column": 16
}
}
},
"property": {
"type": "Identifier",
"start": 1136,
"end": 1150,
"loc": {
"start": {
"line": 41,
"column": 17
},
"end": {
"line": 41,
"column": 31
},
"identifierName": "accumulatedFps"
},
"name": "accumulatedFps"
},
"computed": false
},
"right": {
"type": "NumericLiteral",
"start": 1153,
"end": 1154,
"loc": {
"start": {
"line": 41,
"column": 34
},
"end": {
"line": 41,
"column": 35
}
},
"extra": {
"rawValue": 0,
"raw": "0"
},
"value": 0
}
}
},
{
"type": "ExpressionStatement",
"start": 1169,
"end": 1205,
"loc": {
"start": {
"line": 42,
"column": 12
},
"end": {
"line": 42,
"column": 48
}
},
"expression": {
"type": "AssignmentExpression",
"start": 1169,
"end": 1204,
"loc": {
"start": {
"line": 42,
"column": 12
},
"end": {
"line": 42,
"column": 47
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 1169,
"end": 1198,
"loc": {
"start": {
"line": 42,
"column": 12
},
"end": {
"line": 42,
"column": 41
}
},
"object": {
"type": "ThisExpression",
"start": 1169,
"end": 1173,
"loc": {
"start": {
"line": 42,
"column": 12
},
"end": {
"line": 42,
"column": 16
}
}
},
"property": {
"type": "Identifier",
"start": 1174,
"end": 1198,
"loc": {
"start": {
"line": 42,
"column": 17
},
"end": {
"line": 42,
"column": 41
},
"identifierName": "accumulatedFpsLastUpdate"
},
"name": "accumulatedFpsLastUpdate"
},
"computed": false
},
"right": {
"type": "Identifier",
"start": 1201,
"end": 1204,
"loc": {
"start": {
"line": 42,
"column": 44
},
"end": {
"line": 42,
"column": 47
},
"identifierName": "now"
},
"name": "now"
}
}
}
],
"directives": []
},
"alternate": null
}
],
"directives": [],
"trailingComments": null
},
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Sets the tick rate to N updates per second\r\n * @param {number} rate\r\n ",
"start": 1231,
"end": 1323,
"loc": {
"start": {
"line": 46,
"column": 4
},
"end": {
"line": 49,
"column": 7
}
}
}
]
},
{
"type": "ClassMethod",
"start": 1329,
"end": 1557,
"loc": {
"start": {
"line": 50,
"column": 4
},
"end": {
"line": 55,
"column": 5
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 1329,
"end": 1340,
"loc": {
"start": {
"line": 50,
"column": 4
},
"end": {
"line": 50,
"column": 15
},
"identifierName": "setTickRate"
},
"name": "setTickRate",
"leadingComments": null
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 1341,
"end": 1345,
"loc": {
"start": {
"line": 50,
"column": 16
},
"end": {
"line": 50,
"column": 20
},
"identifierName": "rate"
},
"name": "rate"
}
],
"body": {
"type": "BlockStatement",
"start": 1347,
"end": 1557,
"loc": {
"start": {
"line": 50,
"column": 22
},
"end": {
"line": 55,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 1358,
"end": 1400,
"loc": {
"start": {
"line": 51,
"column": 8
},
"end": {
"line": 51,
"column": 50
}
},
"expression": {
"type": "CallExpression",
"start": 1358,
"end": 1399,
"loc": {
"start": {
"line": 51,
"column": 8
},
"end": {
"line": 51,
"column": 49
}
},
"callee": {
"type": "MemberExpression",
"start": 1358,
"end": 1368,
"loc": {
"start": {
"line": 51,
"column": 8
},
"end": {
"line": 51,
"column": 18
}
},
"object": {
"type": "Identifier",
"start": 1358,
"end": 1364,
"loc": {
"start": {
"line": 51,
"column": 8
},
"end": {
"line": 51,
"column": 14
},
"identifierName": "logger"
},
"name": "logger"
},
"property": {
"type": "Identifier",
"start": 1365,
"end": 1368,
"loc": {
"start": {
"line": 51,
"column": 15
},
"end": {
"line": 51,
"column": 18
},
"identifierName": "log"
},
"name": "log"
},
"computed": false
},
"arguments": [
{
"type": "StringLiteral",
"start": 1369,
"end": 1392,
"loc": {
"start": {
"line": 51,
"column": 19
},
"end": {
"line": 51,
"column": 42
}
},
"extra": {
"rawValue": "Applying tick-rate of",
"raw": "\"Applying tick-rate of\""
},
"value": "Applying tick-rate of"
},
{
"type": "Identifier",
"start": 1394,
"end": 1398,
"loc": {
"start": {
"line": 51,
"column": 44
},
"end": {
"line": 51,
"column": 48
},
"identifierName": "rate"
},
"name": "rate"
}
]
}
},
{
"type": "ExpressionStatement",
"start": 1410,
"end": 1438,
"loc": {
"start": {
"line": 52,
"column": 8
},
"end": {
"line": 52,
"column": 36
}
},
"expression": {
"type": "AssignmentExpression",
"start": 1410,
"end": 1437,
"loc": {
"start": {
"line": 52,
"column": 8
},
"end": {
"line": 52,
"column": 35
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 1410,
"end": 1430,
"loc": {
"start": {
"line": 52,
"column": 8
},
"end": {
"line": 52,
"column": 28
}
},
"object": {
"type": "ThisExpression",
"start": 1410,
"end": 1414,
"loc": {
"start": {
"line": 52,
"column": 8
},
"end": {
"line": 52,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 1415,
"end": 1430,
"loc": {
"start": {
"line": 52,
"column": 13
},
"end": {
"line": 52,
"column": 28
},
"identifierName": "currentTickRate"
},
"name": "currentTickRate"
},
"computed": false
},
"right": {
"type": "Identifier",
"start": 1433,
"end": 1437,
"loc": {
"start": {
"line": 52,
"column": 31
},
"end": {
"line": 52,
"column": 35
},
"identifierName": "rate"
},
"name": "rate"
}
}
},
{
"type": "ExpressionStatement",
"start": 1448,
"end": 1493,
"loc": {
"start": {
"line": 53,
"column": 8
},
"end": {
"line": 53,
"column": 53
}
},
"expression": {
"type": "AssignmentExpression",
"start": 1448,
"end": 1492,
"loc": {
"start": {
"line": 53,
"column": 8
},
"end": {
"line": 53,
"column": 52
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 1448,
"end": 1460,
"loc": {
"start": {
"line": 53,
"column": 8
},
"end": {
"line": 53,
"column": 20
}
},
"object": {
"type": "ThisExpression",
"start": 1448,
"end": 1452,
"loc": {
"start": {
"line": 53,
"column": 8
},
"end": {
"line": 53,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 1453,
"end": 1460,
"loc": {
"start": {
"line": 53,
"column": 13
},
"end": {
"line": 53,
"column": 20
},
"identifierName": "deltaMs"
},
"name": "deltaMs"
},
"computed": false
},
"right": {
"type": "BinaryExpression",
"start": 1463,
"end": 1492,
"loc": {
"start": {
"line": 53,
"column": 23
},
"end": {
"line": 53,
"column": 52
}
},
"left": {
"type": "NumericLiteral",
"start": 1463,
"end": 1469,
"loc": {
"start": {
"line": 53,
"column": 23
},
"end": {
"line": 53,
"column": 29
}
},
"extra": {
"rawValue": 1000,
"raw": "1000.0"
},
"value": 1000
},
"operator": "/",
"right": {
"type": "MemberExpression",
"start": 1472,
"end": 1492,
"loc": {
"start": {
"line": 53,
"column": 32
},
"end": {
"line": 53,
"column": 52
}
},
"object": {
"type": "ThisExpression",
"start": 1472,
"end": 1476,
"loc": {
"start": {
"line": 53,
"column": 32
},
"end": {
"line": 53,
"column": 36
}
}
},
"property": {
"type": "Identifier",
"start": 1477,
"end": 1492,
"loc": {
"start": {
"line": 53,
"column": 37
},
"end": {
"line": 53,
"column": 52
},
"identifierName": "currentTickRate"
},
"name": "currentTickRate"
},
"computed": false
}
}
}
},
{
"type": "ExpressionStatement",
"start": 1503,
"end": 1550,
"loc": {
"start": {
"line": 54,
"column": 8
},
"end": {
"line": 54,
"column": 55
}
},
"expression": {
"type": "AssignmentExpression",
"start": 1503,
"end": 1549,
"loc": {
"start": {
"line": 54,
"column": 8
},
"end": {
"line": 54,
"column": 54
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 1503,
"end": 1520,
"loc": {
"start": {
"line": 54,
"column": 8
},
"end": {
"line": 54,
"column": 25
}
},
"object": {
"type": "ThisExpression",
"start": 1503,
"end": 1507,
"loc": {
"start": {
"line": 54,
"column": 8
},
"end": {
"line": 54,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 1508,
"end": 1520,
"loc": {
"start": {
"line": 54,
"column": 13
},
"end": {
"line": 54,
"column": 25
},
"identifierName": "deltaSeconds"
},
"name": "deltaSeconds"
},
"computed": false
},
"right": {
"type": "BinaryExpression",
"start": 1523,
"end": 1549,
"loc": {
"start": {
"line": 54,
"column": 28
},
"end": {
"line": 54,
"column": 54
}
},
"left": {
"type": "NumericLiteral",
"start": 1523,
"end": 1526,
"loc": {
"start": {
"line": 54,
"column": 28
},
"end": {
"line": 54,
"column": 31
}
},
"extra": {
"rawValue": 1,
"raw": "1.0"
},
"value": 1
},
"operator": "/",
"right": {
"type": "MemberExpression",
"start": 1529,
"end": 1549,
"loc": {
"start": {
"line": 54,
"column": 34
},
"end": {
"line": 54,
"column": 54
}
},
"object": {
"type": "ThisExpression",
"start": 1529,
"end": 1533,
"loc": {
"start": {
"line": 54,
"column": 34
},
"end": {
"line": 54,
"column": 38
}
}
},
"property": {
"type": "Identifier",
"start": 1534,
"end": 1549,
"loc": {
"start": {
"line": 54,
"column": 39
},
"end": {
"line": 54,
"column": 54
},
"identifierName": "currentTickRate"
},
"name": "currentTickRate"
},
"computed": false
}
}
}
}
],
"directives": [],
"trailingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Sets the tick rate to N updates per second\r\n * @param {number} rate\r\n ",
"start": 1231,
"end": 1323,
"loc": {
"start": {
"line": 46,
"column": 4
},
"end": {
"line": 49,
"column": 7
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Increases the tick rate marginally\r\n ",
"start": 1565,
"end": 1620,
"loc": {
"start": {
"line": 57,
"column": 4
},
"end": {
"line": 59,
"column": 7
}
}
}
]
},
{
"type": "ClassMethod",
"start": 1626,
"end": 1908,
"loc": {
"start": {
"line": 60,
"column": 4
},
"end": {
"line": 67,
"column": 5
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 1626,
"end": 1642,
"loc": {
"start": {
"line": 60,
"column": 4
},
"end": {
"line": 60,
"column": 20
},
"identifierName": "increaseTickRate"
},
"name": "increaseTickRate",
"leadingComments": null
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 1645,
"end": 1908,
"loc": {
"start": {
"line": 60,
"column": 23
},
"end": {
"line": 67,
"column": 5
}
},
"body": [
{
"type": "IfStatement",
"start": 1656,
"end": 1742,
"loc": {
"start": {
"line": 61,
"column": 8
},
"end": {
"line": 63,
"column": 9
}
},
"test": {
"type": "LogicalExpression",
"start": 1660,
"end": 1707,
"loc": {
"start": {
"line": 61,
"column": 12
},
"end": {
"line": 61,
"column": 59
}
},
"left": {
"type": "Identifier",
"start": 1660,
"end": 1668,
"loc": {
"start": {
"line": 61,
"column": 12
},
"end": {
"line": 61,
"column": 20
},
"identifierName": "G_IS_DEV"
},
"name": "G_IS_DEV"
},
"operator": "&&",
"right": {
"type": "MemberExpression",
"start": 1672,
"end": 1707,
"loc": {
"start": {
"line": 61,
"column": 24
},
"end": {
"line": 61,
"column": 59
}
},
"object": {
"type": "MemberExpression",
"start": 1672,
"end": 1690,
"loc": {
"start": {
"line": 61,
"column": 24
},
"end": {
"line": 61,
"column": 42
}
},
"object": {
"type": "Identifier",
"start": 1672,
"end": 1684,
"loc": {
"start": {
"line": 61,
"column": 24
},
"end": {
"line": 61,
"column": 36
},
"identifierName": "globalConfig"
},
"name": "globalConfig"
},
"property": {
"type": "Identifier",
"start": 1685,
"end": 1690,
"loc": {
"start": {
"line": 61,
"column": 37
},
"end": {
"line": 61,
"column": 42
},
"identifierName": "debug"
},
"name": "debug"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 1691,
"end": 1707,
"loc": {
"start": {
"line": 61,
"column": 43
},
"end": {
"line": 61,
"column": 59
},
"identifierName": "renderForTrailer"
},
"name": "renderForTrailer"
},
"computed": false
}
},
"consequent": {
"type": "BlockStatement",
"start": 1709,
"end": 1742,
"loc": {
"start": {
"line": 61,
"column": 61
},
"end": {
"line": 63,
"column": 9
}
},
"body": [
{
"type": "ReturnStatement",
"start": 1724,
"end": 1731,
"loc": {
"start": {
"line": 62,
"column": 12
},
"end": {
"line": 62,
"column": 19
}
},
"argument": null
}
],
"directives": []
},
"alternate": null
},
{
"type": "VariableDeclaration",
"start": 1754,
"end": 1812,
"loc": {
"start": {
"line": 65,
"column": 8
},
"end": {
"line": 65,
"column": 66
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 1760,
"end": 1811,
"loc": {
"start": {
"line": 65,
"column": 14
},
"end": {
"line": 65,
"column": 65
}
},
"id": {
"type": "Identifier",
"start": 1760,
"end": 1770,
"loc": {
"start": {
"line": 65,
"column": 14
},
"end": {
"line": 65,
"column": 24
},
"identifierName": "desiredFps"
},
"name": "desiredFps"
},
"init": {
"type": "CallExpression",
"start": 1773,
"end": 1811,
"loc": {
"start": {
"line": 65,
"column": 27
},
"end": {
"line": 65,
"column": 65
}
},
"callee": {
"type": "MemberExpression",
"start": 1773,
"end": 1809,
"loc": {
"start": {
"line": 65,
"column": 27
},
"end": {
"line": 65,
"column": 63
}
},
"object": {
"type": "MemberExpression",
"start": 1773,
"end": 1795,
"loc": {
"start": {
"line": 65,
"column": 27
},
"end": {
"line": 65,
"column": 49
}
},
"object": {
"type": "MemberExpression",
"start": 1773,
"end": 1786,
"loc": {
"start": {
"line": 65,
"column": 27
},
"end": {
"line": 65,
"column": 40
}
},
"object": {
"type": "MemberExpression",
"start": 1773,
"end": 1782,
"loc": {
"start": {
"line": 65,
"column": 27
},
"end": {
"line": 65,
"column": 36
}
},
"object": {
"type": "ThisExpression",
"start": 1773,
"end": 1777,
"loc": {
"start": {
"line": 65,
"column": 27
},
"end": {
"line": 65,
"column": 31
}
}
},
"property": {
"type": "Identifier",
"start": 1778,
"end": 1782,
"loc": {
"start": {
"line": 65,
"column": 32
},
"end": {
"line": 65,
"column": 36
},
"identifierName": "root"
},
"name": "root"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 1783,
"end": 1786,
"loc": {
"start": {
"line": 65,
"column": 37
},
"end": {
"line": 65,
"column": 40
},
"identifierName": "app"
},
"name": "app"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 1787,
"end": 1795,
"loc": {
"start": {
"line": 65,
"column": 41
},
"end": {
"line": 65,
"column": 49
},
"identifierName": "settings"
},
"name": "settings"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 1796,
"end": 1809,
"loc": {
"start": {
"line": 65,
"column": 50
},
"end": {
"line": 65,
"column": 63
},
"identifierName": "getDesiredFps"
},
"name": "getDesiredFps"
},
"computed": false
},
"arguments": []
}
}
],
"kind": "const"
},
{
"type": "ExpressionStatement",
"start": 1822,
"end": 1901,
"loc": {
"start": {
"line": 66,
"column": 8
},
"end": {
"line": 66,
"column": 87
}
},
"expression": {
"type": "CallExpression",
"start": 1822,
"end": 1900,
"loc": {
"start": {
"line": 66,
"column": 8
},
"end": {
"line": 66,
"column": 86
}
},
"callee": {
"type": "MemberExpression",
"start": 1822,
"end": 1838,
"loc": {
"start": {
"line": 66,
"column": 8
},
"end": {
"line": 66,
"column": 24
}
},
"object": {
"type": "ThisExpression",
"start": 1822,
"end": 1826,
"loc": {
"start": {
"line": 66,
"column": 8
},
"end": {
"line": 66,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 1827,
"end": 1838,
"loc": {
"start": {
"line": 66,
"column": 13
},
"end": {
"line": 66,
"column": 24
},
"identifierName": "setTickRate"
},
"name": "setTickRate"
},
"computed": false
},
"arguments": [
{
"type": "CallExpression",
"start": 1839,
"end": 1899,
"loc": {
"start": {
"line": 66,
"column": 25
},
"end": {
"line": 66,
"column": 85
}
},
"callee": {
"type": "MemberExpression",
"start": 1839,
"end": 1849,
"loc": {
"start": {
"line": 66,
"column": 25
},
"end": {
"line": 66,
"column": 35
}
},
"object": {
"type": "Identifier",
"start": 1839,
"end": 1843,
"loc": {
"start": {
"line": 66,
"column": 25
},
"end": {
"line": 66,
"column": 29
},
"identifierName": "Math"
},
"name": "Math"
},
"property": {
"type": "Identifier",
"start": 1844,
"end": 1849,
"loc": {
"start": {
"line": 66,
"column": 30
},
"end": {
"line": 66,
"column": 35
},
"identifierName": "round"
},
"name": "round"
},
"computed": false
},
"arguments": [
{
"type": "CallExpression",
"start": 1850,
"end": 1898,
"loc": {
"start": {
"line": 66,
"column": 36
},
"end": {
"line": 66,
"column": 84
}
},
"callee": {
"type": "MemberExpression",
"start": 1850,
"end": 1858,
"loc": {
"start": {
"line": 66,
"column": 36
},
"end": {
"line": 66,
"column": 44
}
},
"object": {
"type": "Identifier",
"start": 1850,
"end": 1854,
"loc": {
"start": {
"line": 66,
"column": 36
},
"end": {
"line": 66,
"column": 40
},
"identifierName": "Math"
},
"name": "Math"
},
"property": {
"type": "Identifier",
"start": 1855,
"end": 1858,
"loc": {
"start": {
"line": 66,
"column": 41
},
"end": {
"line": 66,
"column": 44
},
"identifierName": "min"
},
"name": "min"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"start": 1859,
"end": 1869,
"loc": {
"start": {
"line": 66,
"column": 45
},
"end": {
"line": 66,
"column": 55
},
"identifierName": "desiredFps"
},
"name": "desiredFps"
},
{
"type": "BinaryExpression",
"start": 1871,
"end": 1897,
"loc": {
"start": {
"line": 66,
"column": 57
},
"end": {
"line": 66,
"column": 83
}
},
"left": {
"type": "MemberExpression",
"start": 1871,
"end": 1891,
"loc": {
"start": {
"line": 66,
"column": 57
},
"end": {
"line": 66,
"column": 77
}
},
"object": {
"type": "ThisExpression",
"start": 1871,
"end": 1875,
"loc": {
"start": {
"line": 66,
"column": 57
},
"end": {
"line": 66,
"column": 61
}
}
},
"property": {
"type": "Identifier",
"start": 1876,
"end": 1891,
"loc": {
"start": {
"line": 66,
"column": 62
},
"end": {
"line": 66,
"column": 77
},
"identifierName": "currentTickRate"
},
"name": "currentTickRate"
},
"computed": false
},
"operator": "*",
"right": {
"type": "NumericLiteral",
"start": 1894,
"end": 1897,
"loc": {
"start": {
"line": 66,
"column": 80
},
"end": {
"line": 66,
"column": 83
}
},
"extra": {
"rawValue": 1.2,
"raw": "1.2"
},
"value": 1.2
}
}
]
}
]
}
]
}
}
],
"directives": [],
"trailingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Increases the tick rate marginally\r\n ",
"start": 1565,
"end": 1620,
"loc": {
"start": {
"line": 57,
"column": 4
},
"end": {
"line": 59,
"column": 7
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Decreases the tick rate marginally\r\n ",
"start": 1916,
"end": 1971,
"loc": {
"start": {
"line": 69,
"column": 4
},
"end": {
"line": 71,
"column": 7
}
}
}
]
},
{
"type": "ClassMethod",
"start": 1977,
"end": 2263,
"loc": {
"start": {
"line": 72,
"column": 4
},
"end": {
"line": 79,
"column": 5
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 1977,
"end": 1993,
"loc": {
"start": {
"line": 72,
"column": 4
},
"end": {
"line": 72,
"column": 20
},
"identifierName": "decreaseTickRate"
},
"name": "decreaseTickRate",
"leadingComments": null
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 1996,
"end": 2263,
"loc": {
"start": {
"line": 72,
"column": 23
},
"end": {
"line": 79,
"column": 5
}
},
"body": [
{
"type": "IfStatement",
"start": 2007,
"end": 2093,
"loc": {
"start": {
"line": 73,
"column": 8
},
"end": {
"line": 75,
"column": 9
}
},
"test": {
"type": "LogicalExpression",
"start": 2011,
"end": 2058,
"loc": {
"start": {
"line": 73,
"column": 12
},
"end": {
"line": 73,
"column": 59
}
},
"left": {
"type": "Identifier",
"start": 2011,
"end": 2019,
"loc": {
"start": {
"line": 73,
"column": 12
},
"end": {
"line": 73,
"column": 20
},
"identifierName": "G_IS_DEV"
},
"name": "G_IS_DEV"
},
"operator": "&&",
"right": {
"type": "MemberExpression",
"start": 2023,
"end": 2058,
"loc": {
"start": {
"line": 73,
"column": 24
},
"end": {
"line": 73,
"column": 59
}
},
"object": {
"type": "MemberExpression",
"start": 2023,
"end": 2041,
"loc": {
"start": {
"line": 73,
"column": 24
},
"end": {
"line": 73,
"column": 42
}
},
"object": {
"type": "Identifier",
"start": 2023,
"end": 2035,
"loc": {
"start": {
"line": 73,
"column": 24
},
"end": {
"line": 73,
"column": 36
},
"identifierName": "globalConfig"
},
"name": "globalConfig"
},
"property": {
"type": "Identifier",
"start": 2036,
"end": 2041,
"loc": {
"start": {
"line": 73,
"column": 37
},
"end": {
"line": 73,
"column": 42
},
"identifierName": "debug"
},
"name": "debug"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 2042,
"end": 2058,
"loc": {
"start": {
"line": 73,
"column": 43
},
"end": {
"line": 73,
"column": 59
},
"identifierName": "renderForTrailer"
},
"name": "renderForTrailer"
},
"computed": false
}
},
"consequent": {
"type": "BlockStatement",
"start": 2060,
"end": 2093,
"loc": {
"start": {
"line": 73,
"column": 61
},
"end": {
"line": 75,
"column": 9
}
},
"body": [
{
"type": "ReturnStatement",
"start": 2075,
"end": 2082,
"loc": {
"start": {
"line": 74,
"column": 12
},
"end": {
"line": 74,
"column": 19
}
},
"argument": null
}
],
"directives": []
},
"alternate": null
},
{
"type": "VariableDeclaration",
"start": 2105,
"end": 2163,
"loc": {
"start": {
"line": 77,
"column": 8
},
"end": {
"line": 77,
"column": 66
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 2111,
"end": 2162,
"loc": {
"start": {
"line": 77,
"column": 14
},
"end": {
"line": 77,
"column": 65
}
},
"id": {
"type": "Identifier",
"start": 2111,
"end": 2121,
"loc": {
"start": {
"line": 77,
"column": 14
},
"end": {
"line": 77,
"column": 24
},
"identifierName": "desiredFps"
},
"name": "desiredFps"
},
"init": {
"type": "CallExpression",
"start": 2124,
"end": 2162,
"loc": {
"start": {
"line": 77,
"column": 27
},
"end": {
"line": 77,
"column": 65
}
},
"callee": {
"type": "MemberExpression",
"start": 2124,
"end": 2160,
"loc": {
"start": {
"line": 77,
"column": 27
},
"end": {
"line": 77,
"column": 63
}
},
"object": {
"type": "MemberExpression",
"start": 2124,
"end": 2146,
"loc": {
"start": {
"line": 77,
"column": 27
},
"end": {
"line": 77,
"column": 49
}
},
"object": {
"type": "MemberExpression",
"start": 2124,
"end": 2137,
"loc": {
"start": {
"line": 77,
"column": 27
},
"end": {
"line": 77,
"column": 40
}
},
"object": {
"type": "MemberExpression",
"start": 2124,
"end": 2133,
"loc": {
"start": {
"line": 77,
"column": 27
},
"end": {
"line": 77,
"column": 36
}
},
"object": {
"type": "ThisExpression",
"start": 2124,
"end": 2128,
"loc": {
"start": {
"line": 77,
"column": 27
},
"end": {
"line": 77,
"column": 31
}
}
},
"property": {
"type": "Identifier",
"start": 2129,
"end": 2133,
"loc": {
"start": {
"line": 77,
"column": 32
},
"end": {
"line": 77,
"column": 36
},
"identifierName": "root"
},
"name": "root"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 2134,
"end": 2137,
"loc": {
"start": {
"line": 77,
"column": 37
},
"end": {
"line": 77,
"column": 40
},
"identifierName": "app"
},
"name": "app"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 2138,
"end": 2146,
"loc": {
"start": {
"line": 77,
"column": 41
},
"end": {
"line": 77,
"column": 49
},
"identifierName": "settings"
},
"name": "settings"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 2147,
"end": 2160,
"loc": {
"start": {
"line": 77,
"column": 50
},
"end": {
"line": 77,
"column": 63
},
"identifierName": "getDesiredFps"
},
"name": "getDesiredFps"
},
"computed": false
},
"arguments": []
}
}
],
"kind": "const"
},
{
"type": "ExpressionStatement",
"start": 2173,
"end": 2256,
"loc": {
"start": {
"line": 78,
"column": 8
},
"end": {
"line": 78,
"column": 91
}
},
"expression": {
"type": "CallExpression",
"start": 2173,
"end": 2255,
"loc": {
"start": {
"line": 78,
"column": 8
},
"end": {
"line": 78,
"column": 90
}
},
"callee": {
"type": "MemberExpression",
"start": 2173,
"end": 2189,
"loc": {
"start": {
"line": 78,
"column": 8
},
"end": {
"line": 78,
"column": 24
}
},
"object": {
"type": "ThisExpression",
"start": 2173,
"end": 2177,
"loc": {
"start": {
"line": 78,
"column": 8
},
"end": {
"line": 78,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 2178,
"end": 2189,
"loc": {
"start": {
"line": 78,
"column": 13
},
"end": {
"line": 78,
"column": 24
},
"identifierName": "setTickRate"
},
"name": "setTickRate"
},
"computed": false
},
"arguments": [
{
"type": "CallExpression",
"start": 2190,
"end": 2254,
"loc": {
"start": {
"line": 78,
"column": 25
},
"end": {
"line": 78,
"column": 89
}
},
"callee": {
"type": "MemberExpression",
"start": 2190,
"end": 2200,
"loc": {
"start": {
"line": 78,
"column": 25
},
"end": {
"line": 78,
"column": 35
}
},
"object": {
"type": "Identifier",
"start": 2190,
"end": 2194,
"loc": {
"start": {
"line": 78,
"column": 25
},
"end": {
"line": 78,
"column": 29
},
"identifierName": "Math"
},
"name": "Math"
},
"property": {
"type": "Identifier",
"start": 2195,
"end": 2200,
"loc": {
"start": {
"line": 78,
"column": 30
},
"end": {
"line": 78,
"column": 35
},
"identifierName": "round"
},
"name": "round"
},
"computed": false
},
"arguments": [
{
"type": "CallExpression",
"start": 2201,
"end": 2253,
"loc": {
"start": {
"line": 78,
"column": 36
},
"end": {
"line": 78,
"column": 88
}
},
"callee": {
"type": "MemberExpression",
"start": 2201,
"end": 2209,
"loc": {
"start": {
"line": 78,
"column": 36
},
"end": {
"line": 78,
"column": 44
}
},
"object": {
"type": "Identifier",
"start": 2201,
"end": 2205,
"loc": {
"start": {
"line": 78,
"column": 36
},
"end": {
"line": 78,
"column": 40
},
"identifierName": "Math"
},
"name": "Math"
},
"property": {
"type": "Identifier",
"start": 2206,
"end": 2209,
"loc": {
"start": {
"line": 78,
"column": 41
},
"end": {
"line": 78,
"column": 44
},
"identifierName": "max"
},
"name": "max"
},
"computed": false
},
"arguments": [
{
"type": "BinaryExpression",
"start": 2210,
"end": 2224,
"loc": {
"start": {
"line": 78,
"column": 45
},
"end": {
"line": 78,
"column": 59
}
},
"left": {
"type": "Identifier",
"start": 2210,
"end": 2220,
"loc": {
"start": {
"line": 78,
"column": 45
},
"end": {
"line": 78,
"column": 55
},
"identifierName": "desiredFps"
},
"name": "desiredFps"
},
"operator": "/",
"right": {
"type": "NumericLiteral",
"start": 2223,
"end": 2224,
"loc": {
"start": {
"line": 78,
"column": 58
},
"end": {
"line": 78,
"column": 59
}
},
"extra": {
"rawValue": 2,
"raw": "2"
},
"value": 2
}
},
{
"type": "BinaryExpression",
"start": 2226,
"end": 2252,
"loc": {
"start": {
"line": 78,
"column": 61
},
"end": {
"line": 78,
"column": 87
}
},
"left": {
"type": "MemberExpression",
"start": 2226,
"end": 2246,
"loc": {
"start": {
"line": 78,
"column": 61
},
"end": {
"line": 78,
"column": 81
}
},
"object": {
"type": "ThisExpression",
"start": 2226,
"end": 2230,
"loc": {
"start": {
"line": 78,
"column": 61
},
"end": {
"line": 78,
"column": 65
}
}
},
"property": {
"type": "Identifier",
"start": 2231,
"end": 2246,
"loc": {
"start": {
"line": 78,
"column": 66
},
"end": {
"line": 78,
"column": 81
},
"identifierName": "currentTickRate"
},
"name": "currentTickRate"
},
"computed": false
},
"operator": "*",
"right": {
"type": "NumericLiteral",
"start": 2249,
"end": 2252,
"loc": {
"start": {
"line": 78,
"column": 84
},
"end": {
"line": 78,
"column": 87
}
},
"extra": {
"rawValue": 0.8,
"raw": "0.8"
},
"value": 0.8
}
}
]
}
]
}
]
}
}
],
"directives": [],
"trailingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Decreases the tick rate marginally\r\n ",
"start": 1916,
"end": 1971,
"loc": {
"start": {
"line": 69,
"column": 4
},
"end": {
"line": 71,
"column": 7
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Call whenever a tick began\r\n ",
"start": 2271,
"end": 2318,
"loc": {
"start": {
"line": 81,
"column": 4
},
"end": {
"line": 83,
"column": 7
}
}
}
]
},
{
"type": "ClassMethod",
"start": 2324,
"end": 3500,
"loc": {
"start": {
"line": 84,
"column": 4
},
"end": {
"line": 114,
"column": 5
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 2324,
"end": 2333,
"loc": {
"start": {
"line": 84,
"column": 4
},
"end": {
"line": 84,
"column": 13
},
"identifierName": "beginTick"
},
"name": "beginTick",
"leadingComments": null
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 2336,
"end": 3500,
"loc": {
"start": {
"line": 84,
"column": 16
},
"end": {
"line": 114,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 2347,
"end": 2412,
"loc": {
"start": {
"line": 85,
"column": 8
},
"end": {
"line": 85,
"column": 73
}
},
"expression": {
"type": "CallExpression",
"start": 2347,
"end": 2411,
"loc": {
"start": {
"line": 85,
"column": 8
},
"end": {
"line": 85,
"column": 72
}
},
"callee": {
"type": "Identifier",
"start": 2347,
"end": 2353,
"loc": {
"start": {
"line": 85,
"column": 8
},
"end": {
"line": 85,
"column": 14
},
"identifierName": "assert"
},
"name": "assert"
},
"arguments": [
{
"type": "BinaryExpression",
"start": 2354,
"end": 2384,
"loc": {
"start": {
"line": 85,
"column": 15
},
"end": {
"line": 85,
"column": 45
}
},
"left": {
"type": "MemberExpression",
"start": 2354,
"end": 2375,
"loc": {
"start": {
"line": 85,
"column": 15
},
"end": {
"line": 85,
"column": 36
}
},
"object": {
"type": "ThisExpression",
"start": 2354,
"end": 2358,
"loc": {
"start": {
"line": 85,
"column": 15
},
"end": {
"line": 85,
"column": 19
}
}
},
"property": {
"type": "Identifier",
"start": 2359,
"end": 2375,
"loc": {
"start": {
"line": 85,
"column": 20
},
"end": {
"line": 85,
"column": 36
},
"identifierName": "currentTickStart"
},
"name": "currentTickStart"
},
"computed": false
},
"operator": "===",
"right": {
"type": "NullLiteral",
"start": 2380,
"end": 2384,
"loc": {
"start": {
"line": 85,
"column": 41
},
"end": {
"line": 85,
"column": 45
}
}
}
},
{
"type": "StringLiteral",
"start": 2386,
"end": 2410,
"loc": {
"start": {
"line": 85,
"column": 47
},
"end": {
"line": 85,
"column": 71
}
},
"extra": {
"rawValue": "BeginTick called twice",
"raw": "\"BeginTick called twice\""
},
"value": "BeginTick called twice"
}
]
}
},
{
"type": "ExpressionStatement",
"start": 2422,
"end": 2464,
"loc": {
"start": {
"line": 86,
"column": 8
},
"end": {
"line": 86,
"column": 50
}
},
"expression": {
"type": "AssignmentExpression",
"start": 2422,
"end": 2463,
"loc": {
"start": {
"line": 86,
"column": 8
},
"end": {
"line": 86,
"column": 49
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 2422,
"end": 2443,
"loc": {
"start": {
"line": 86,
"column": 8
},
"end": {
"line": 86,
"column": 29
}
},
"object": {
"type": "ThisExpression",
"start": 2422,
"end": 2426,
"loc": {
"start": {
"line": 86,
"column": 8
},
"end": {
"line": 86,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 2427,
"end": 2443,
"loc": {
"start": {
"line": 86,
"column": 13
},
"end": {
"line": 86,
"column": 29
},
"identifierName": "currentTickStart"
},
"name": "currentTickStart"
},
"computed": false
},
"right": {
"type": "CallExpression",
"start": 2446,
"end": 2463,
"loc": {
"start": {
"line": 86,
"column": 32
},
"end": {
"line": 86,
"column": 49
}
},
"callee": {
"type": "MemberExpression",
"start": 2446,
"end": 2461,
"loc": {
"start": {
"line": 86,
"column": 32
},
"end": {
"line": 86,
"column": 47
}
},
"object": {
"type": "Identifier",
"start": 2446,
"end": 2457,
"loc": {
"start": {
"line": 86,
"column": 32
},
"end": {
"line": 86,
"column": 43
},
"identifierName": "performance"
},
"name": "performance"
},
"property": {
"type": "Identifier",
"start": 2458,
"end": 2461,
"loc": {
"start": {
"line": 86,
"column": 44
},
"end": {
"line": 86,
"column": 47
},
"identifierName": "now"
},
"name": "now"
},
"computed": false
},
"arguments": []
}
}
},
{
"type": "IfStatement",
"start": 2476,
"end": 3493,
"loc": {
"start": {
"line": 88,
"column": 8
},
"end": {
"line": 113,
"column": 9
}
},
"test": {
"type": "BinaryExpression",
"start": 2480,
"end": 2532,
"loc": {
"start": {
"line": 88,
"column": 12
},
"end": {
"line": 88,
"column": 64
}
},
"left": {
"type": "MemberExpression",
"start": 2480,
"end": 2505,
"loc": {
"start": {
"line": 88,
"column": 12
},
"end": {
"line": 88,
"column": 37
}
},
"object": {
"type": "MemberExpression",
"start": 2480,
"end": 2498,
"loc": {
"start": {
"line": 88,
"column": 12
},
"end": {
"line": 88,
"column": 30
}
},
"object": {
"type": "ThisExpression",
"start": 2480,
"end": 2484,
"loc": {
"start": {
"line": 88,
"column": 12
},
"end": {
"line": 88,
"column": 16
}
}
},
"property": {
"type": "Identifier",
"start": 2485,
"end": 2498,
"loc": {
"start": {
"line": 88,
"column": 17
},
"end": {
"line": 88,
"column": 30
},
"identifierName": "capturedTicks"
},
"name": "capturedTicks"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 2499,
"end": 2505,
"loc": {
"start": {
"line": 88,
"column": 31
},
"end": {
"line": 88,
"column": 37
},
"identifierName": "length"
},
"name": "length"
},
"computed": false
},
"operator": ">",
"right": {
"type": "BinaryExpression",
"start": 2508,
"end": 2532,
"loc": {
"start": {
"line": 88,
"column": 40
},
"end": {
"line": 88,
"column": 64
}
},
"left": {
"type": "MemberExpression",
"start": 2508,
"end": 2528,
"loc": {
"start": {
"line": 88,
"column": 40
},
"end": {
"line": 88,
"column": 60
}
},
"object": {
"type": "ThisExpression",
"start": 2508,
"end": 2512,
"loc": {
"start": {
"line": 88,
"column": 40
},
"end": {
"line": 88,
"column": 44
}
}
},
"property": {
"type": "Identifier",
"start": 2513,
"end": 2528,
"loc": {
"start": {
"line": 88,
"column": 45
},
"end": {
"line": 88,
"column": 60
},
"identifierName": "currentTickRate"
},
"name": "currentTickRate"
},
"computed": false
},
"operator": "*",
"right": {
"type": "NumericLiteral",
"start": 2531,
"end": 2532,
"loc": {
"start": {
"line": 88,
"column": 63
},
"end": {
"line": 88,
"column": 64
}
},
"extra": {
"rawValue": 2,
"raw": "2"
},
"value": 2
}
}
},
"consequent": {
"type": "BlockStatement",
"start": 2534,
"end": 3493,
"loc": {
"start": {
"line": 88,
"column": 66
},
"end": {
"line": 113,
"column": 9
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 2598,
"end": 2624,
"loc": {
"start": {
"line": 90,
"column": 12
},
"end": {
"line": 90,
"column": 38
}
},
"expression": {
"type": "CallExpression",
"start": 2598,
"end": 2623,
"loc": {
"start": {
"line": 90,
"column": 12
},
"end": {
"line": 90,
"column": 37
}
},
"callee": {
"type": "MemberExpression",
"start": 2598,
"end": 2621,
"loc": {
"start": {
"line": 90,
"column": 12
},
"end": {
"line": 90,
"column": 35
}
},
"object": {
"type": "MemberExpression",
"start": 2598,
"end": 2616,
"loc": {
"start": {
"line": 90,
"column": 12
},
"end": {
"line": 90,
"column": 30
}
},
"object": {
"type": "ThisExpression",
"start": 2598,
"end": 2602,
"loc": {
"start": {
"line": 90,
"column": 12
},
"end": {
"line": 90,
"column": 16
}
},
"leadingComments": null
},
"property": {
"type": "Identifier",
"start": 2603,
"end": 2616,
"loc": {
"start": {
"line": 90,
"column": 17
},
"end": {
"line": 90,
"column": 30
},
"identifierName": "capturedTicks"
},
"name": "capturedTicks"
},
"computed": false,
"leadingComments": null
},
"property": {
"type": "Identifier",
"start": 2617,
"end": 2621,
"loc": {
"start": {
"line": 90,
"column": 31
},
"end": {
"line": 90,
"column": 35
},
"identifierName": "sort"
},
"name": "sort"
},
"computed": false,
"leadingComments": null
},
"arguments": [],
"leadingComments": null
},
"leadingComments": [
{
"type": "CommentLine",
"value": " Take only a portion of the ticks",
"start": 2549,
"end": 2584,
"loc": {
"start": {
"line": 89,
"column": 12
},
"end": {
"line": 89,
"column": 47
}
}
}
]
},
{
"type": "ExpressionStatement",
"start": 2638,
"end": 2671,
"loc": {
"start": {
"line": 91,
"column": 12
},
"end": {
"line": 91,
"column": 45
}
},
"expression": {
"type": "CallExpression",
"start": 2638,
"end": 2670,
"loc": {
"start": {
"line": 91,
"column": 12
},
"end": {
"line": 91,
"column": 44
}
},
"callee": {
"type": "MemberExpression",
"start": 2638,
"end": 2663,
"loc": {
"start": {
"line": 91,
"column": 12
},
"end": {
"line": 91,
"column": 37
}
},
"object": {
"type": "MemberExpression",
"start": 2638,
"end": 2656,
"loc": {
"start": {
"line": 91,
"column": 12
},
"end": {
"line": 91,
"column": 30
}
},
"object": {
"type": "ThisExpression",
"start": 2638,
"end": 2642,
"loc": {
"start": {
"line": 91,
"column": 12
},
"end": {
"line": 91,
"column": 16
}
}
},
"property": {
"type": "Identifier",
"start": 2643,
"end": 2656,
"loc": {
"start": {
"line": 91,
"column": 17
},
"end": {
"line": 91,
"column": 30
},
"identifierName": "capturedTicks"
},
"name": "capturedTicks"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 2657,
"end": 2663,
"loc": {
"start": {
"line": 91,
"column": 31
},
"end": {
"line": 91,
"column": 37
},
"identifierName": "splice"
},
"name": "splice"
},
"computed": false
},
"arguments": [
{
"type": "NumericLiteral",
"start": 2664,
"end": 2665,
"loc": {
"start": {
"line": 91,
"column": 38
},
"end": {
"line": 91,
"column": 39
}
},
"extra": {
"rawValue": 0,
"raw": "0"
},
"value": 0
},
{
"type": "NumericLiteral",
"start": 2667,
"end": 2669,
"loc": {
"start": {
"line": 91,
"column": 41
},
"end": {
"line": 91,
"column": 43
}
},
"extra": {
"rawValue": 10,
"raw": "10"
},
"value": 10
}
]
}
},
{
"type": "ExpressionStatement",
"start": 2685,
"end": 2747,
"loc": {
"start": {
"line": 92,
"column": 12
},
"end": {
"line": 92,
"column": 74
}
},
"expression": {
"type": "CallExpression",
"start": 2685,
"end": 2746,
"loc": {
"start": {
"line": 92,
"column": 12
},
"end": {
"line": 92,
"column": 73
}
},
"callee": {
"type": "MemberExpression",
"start": 2685,
"end": 2710,
"loc": {
"start": {
"line": 92,
"column": 12
},
"end": {
"line": 92,
"column": 37
}
},
"object": {
"type": "MemberExpression",
"start": 2685,
"end": 2703,
"loc": {
"start": {
"line": 92,
"column": 12
},
"end": {
"line": 92,
"column": 30
}
},
"object": {
"type": "ThisExpression",
"start": 2685,
"end": 2689,
"loc": {
"start": {
"line": 92,
"column": 12
},
"end": {
"line": 92,
"column": 16
}
}
},
"property": {
"type": "Identifier",
"start": 2690,
"end": 2703,
"loc": {
"start": {
"line": 92,
"column": 17
},
"end": {
"line": 92,
"column": 30
},
"identifierName": "capturedTicks"
},
"name": "capturedTicks"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 2704,
"end": 2710,
"loc": {
"start": {
"line": 92,
"column": 31
},
"end": {
"line": 92,
"column": 37
},
"identifierName": "splice"
},
"name": "splice"
},
"computed": false
},
"arguments": [
{
"type": "BinaryExpression",
"start": 2711,
"end": 2741,
"loc": {
"start": {
"line": 92,
"column": 38
},
"end": {
"line": 92,
"column": 68
}
},
"left": {
"type": "MemberExpression",
"start": 2711,
"end": 2736,
"loc": {
"start": {
"line": 92,
"column": 38
},
"end": {
"line": 92,
"column": 63
}
},
"object": {
"type": "MemberExpression",
"start": 2711,
"end": 2729,
"loc": {
"start": {
"line": 92,
"column": 38
},
"end": {
"line": 92,
"column": 56
}
},
"object": {
"type": "ThisExpression",
"start": 2711,
"end": 2715,
"loc": {
"start": {
"line": 92,
"column": 38
},
"end": {
"line": 92,
"column": 42
}
}
},
"property": {
"type": "Identifier",
"start": 2716,
"end": 2729,
"loc": {
"start": {
"line": 92,
"column": 43
},
"end": {
"line": 92,
"column": 56
},
"identifierName": "capturedTicks"
},
"name": "capturedTicks"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 2730,
"end": 2736,
"loc": {
"start": {
"line": 92,
"column": 57
},
"end": {
"line": 92,
"column": 63
},
"identifierName": "length"
},
"name": "length"
},
"computed": false
},
"operator": "-",
"right": {
"type": "NumericLiteral",
"start": 2739,
"end": 2741,
"loc": {
"start": {
"line": 92,
"column": 66
},
"end": {
"line": 92,
"column": 68
}
},
"extra": {
"rawValue": 11,
"raw": "11"
},
"value": 11
}
},
{
"type": "NumericLiteral",
"start": 2743,
"end": 2745,
"loc": {
"start": {
"line": 92,
"column": 70
},
"end": {
"line": 92,
"column": 72
}
},
"extra": {
"rawValue": 10,
"raw": "10"
},
"value": 10
}
]
}
},
{
"type": "VariableDeclaration",
"start": 2763,
"end": 2779,
"loc": {
"start": {
"line": 94,
"column": 12
},
"end": {
"line": 94,
"column": 28
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 2767,
"end": 2778,
"loc": {
"start": {
"line": 94,
"column": 16
},
"end": {
"line": 94,
"column": 27
}
},
"id": {
"type": "Identifier",
"start": 2767,
"end": 2774,
"loc": {
"start": {
"line": 94,
"column": 16
},
"end": {
"line": 94,
"column": 23
},
"identifierName": "average"
},
"name": "average"
},
"init": {
"type": "NumericLiteral",
"start": 2777,
"end": 2778,
"loc": {
"start": {
"line": 94,
"column": 26
},
"end": {
"line": 94,
"column": 27
}
},
"extra": {
"rawValue": 0,
"raw": "0"
},
"value": 0
}
}
],
"kind": "let"
},
{
"type": "ForStatement",
"start": 2793,
"end": 2912,
"loc": {
"start": {
"line": 95,
"column": 12
},
"end": {
"line": 97,
"column": 13
}
},
"init": {
"type": "VariableDeclaration",
"start": 2798,
"end": 2807,
"loc": {
"start": {
"line": 95,
"column": 17
},
"end": {
"line": 95,
"column": 26
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 2802,
"end": 2807,
"loc": {
"start": {
"line": 95,
"column": 21
},
"end": {
"line": 95,
"column": 26
}
},
"id": {
"type": "Identifier",
"start": 2802,
"end": 2803,
"loc": {
"start": {
"line": 95,
"column": 21
},
"end": {
"line": 95,
"column": 22
},
"identifierName": "i"
},
"name": "i"
},
"init": {
"type": "NumericLiteral",
"start": 2806,
"end": 2807,
"loc": {
"start": {
"line": 95,
"column": 25
},
"end": {
"line": 95,
"column": 26
}
},
"extra": {
"rawValue": 0,
"raw": "0"
},
"value": 0
}
}
],
"kind": "let"
},
"test": {
"type": "BinaryExpression",
"start": 2809,
"end": 2838,
"loc": {
"start": {
"line": 95,
"column": 28
},
"end": {
"line": 95,
"column": 57
}
},
"left": {
"type": "Identifier",
"start": 2809,
"end": 2810,
"loc": {
"start": {
"line": 95,
"column": 28
},
"end": {
"line": 95,
"column": 29
},
"identifierName": "i"
},
"name": "i"
},
"operator": "<",
"right": {
"type": "MemberExpression",
"start": 2813,
"end": 2838,
"loc": {
"start": {
"line": 95,
"column": 32
},
"end": {
"line": 95,
"column": 57
}
},
"object": {
"type": "MemberExpression",
"start": 2813,
"end": 2831,
"loc": {
"start": {
"line": 95,
"column": 32
},
"end": {
"line": 95,
"column": 50
}
},
"object": {
"type": "ThisExpression",
"start": 2813,
"end": 2817,
"loc": {
"start": {
"line": 95,
"column": 32
},
"end": {
"line": 95,
"column": 36
}
}
},
"property": {
"type": "Identifier",
"start": 2818,
"end": 2831,
"loc": {
"start": {
"line": 95,
"column": 37
},
"end": {
"line": 95,
"column": 50
},
"identifierName": "capturedTicks"
},
"name": "capturedTicks"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 2832,
"end": 2838,
"loc": {
"start": {
"line": 95,
"column": 51
},
"end": {
"line": 95,
"column": 57
},
"identifierName": "length"
},
"name": "length"
},
"computed": false
}
},
"update": {
"type": "UpdateExpression",
"start": 2840,
"end": 2843,
"loc": {
"start": {
"line": 95,
"column": 59
},
"end": {
"line": 95,
"column": 62
}
},
"operator": "++",
"prefix": true,
"argument": {
"type": "Identifier",
"start": 2842,
"end": 2843,
"loc": {
"start": {
"line": 95,
"column": 61
},
"end": {
"line": 95,
"column": 62
},
"identifierName": "i"
},
"name": "i"
},
"extra": {
"parenthesizedArgument": false
}
},
"body": {
"type": "BlockStatement",
"start": 2845,
"end": 2912,
"loc": {
"start": {
"line": 95,
"column": 64
},
"end": {
"line": 97,
"column": 13
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 2864,
"end": 2897,
"loc": {
"start": {
"line": 96,
"column": 16
},
"end": {
"line": 96,
"column": 49
}
},
"expression": {
"type": "AssignmentExpression",
"start": 2864,
"end": 2896,
"loc": {
"start": {
"line": 96,
"column": 16
},
"end": {
"line": 96,
"column": 48
}
},
"operator": "+=",
"left": {
"type": "Identifier",
"start": 2864,
"end": 2871,
"loc": {
"start": {
"line": 96,
"column": 16
},
"end": {
"line": 96,
"column": 23
},
"identifierName": "average"
},
"name": "average"
},
"right": {
"type": "MemberExpression",
"start": 2875,
"end": 2896,
"loc": {
"start": {
"line": 96,
"column": 27
},
"end": {
"line": 96,
"column": 48
}
},
"object": {
"type": "MemberExpression",
"start": 2875,
"end": 2893,
"loc": {
"start": {
"line": 96,
"column": 27
},
"end": {
"line": 96,
"column": 45
}
},
"object": {
"type": "ThisExpression",
"start": 2875,
"end": 2879,
"loc": {
"start": {
"line": 96,
"column": 27
},
"end": {
"line": 96,
"column": 31
}
}
},
"property": {
"type": "Identifier",
"start": 2880,
"end": 2893,
"loc": {
"start": {
"line": 96,
"column": 32
},
"end": {
"line": 96,
"column": 45
},
"identifierName": "capturedTicks"
},
"name": "capturedTicks"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 2894,
"end": 2895,
"loc": {
"start": {
"line": 96,
"column": 46
},
"end": {
"line": 96,
"column": 47
},
"identifierName": "i"
},
"name": "i"
},
"computed": true
}
}
}
],
"directives": []
}
},
{
"type": "ExpressionStatement",
"start": 2926,
"end": 2963,
"loc": {
"start": {
"line": 98,
"column": 12
},
"end": {
"line": 98,
"column": 49
}
},
"expression": {
"type": "AssignmentExpression",
"start": 2926,
"end": 2962,
"loc": {
"start": {
"line": 98,
"column": 12
},
"end": {
"line": 98,
"column": 48
}
},
"operator": "/=",
"left": {
"type": "Identifier",
"start": 2926,
"end": 2933,
"loc": {
"start": {
"line": 98,
"column": 12
},
"end": {
"line": 98,
"column": 19
},
"identifierName": "average"
},
"name": "average"
},
"right": {
"type": "MemberExpression",
"start": 2937,
"end": 2962,
"loc": {
"start": {
"line": 98,
"column": 23
},
"end": {
"line": 98,
"column": 48
}
},
"object": {
"type": "MemberExpression",
"start": 2937,
"end": 2955,
"loc": {
"start": {
"line": 98,
"column": 23
},
"end": {
"line": 98,
"column": 41
}
},
"object": {
"type": "ThisExpression",
"start": 2937,
"end": 2941,
"loc": {
"start": {
"line": 98,
"column": 23
},
"end": {
"line": 98,
"column": 27
}
}
},
"property": {
"type": "Identifier",
"start": 2942,
"end": 2955,
"loc": {
"start": {
"line": 98,
"column": 28
},
"end": {
"line": 98,
"column": 41
},
"identifierName": "capturedTicks"
},
"name": "capturedTicks"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 2956,
"end": 2962,
"loc": {
"start": {
"line": 98,
"column": 42
},
"end": {
"line": 98,
"column": 48
},
"identifierName": "length"
},
"name": "length"
},
"computed": false
}
}
},
{
"type": "ExpressionStatement",
"start": 2979,
"end": 3014,
"loc": {
"start": {
"line": 100,
"column": 12
},
"end": {
"line": 100,
"column": 47
}
},
"expression": {
"type": "AssignmentExpression",
"start": 2979,
"end": 3013,
"loc": {
"start": {
"line": 100,
"column": 12
},
"end": {
"line": 100,
"column": 46
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 2979,
"end": 3003,
"loc": {
"start": {
"line": 100,
"column": 12
},
"end": {
"line": 100,
"column": 36
}
},
"object": {
"type": "ThisExpression",
"start": 2979,
"end": 2983,
"loc": {
"start": {
"line": 100,
"column": 12
},
"end": {
"line": 100,
"column": 16
}
}
},
"property": {
"type": "Identifier",
"start": 2984,
"end": 3003,
"loc": {
"start": {
"line": 100,
"column": 17
},
"end": {
"line": 100,
"column": 36
},
"identifierName": "averageTickDuration"
},
"name": "averageTickDuration"
},
"computed": false
},
"right": {
"type": "Identifier",
"start": 3006,
"end": 3013,
"loc": {
"start": {
"line": 100,
"column": 39
},
"end": {
"line": 100,
"column": 46
},
"identifierName": "average"
},
"name": "average"
}
}
},
{
"type": "VariableDeclaration",
"start": 3030,
"end": 3088,
"loc": {
"start": {
"line": 102,
"column": 12
},
"end": {
"line": 102,
"column": 70
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 3036,
"end": 3087,
"loc": {
"start": {
"line": 102,
"column": 18
},
"end": {
"line": 102,
"column": 69
}
},
"id": {
"type": "Identifier",
"start": 3036,
"end": 3046,
"loc": {
"start": {
"line": 102,
"column": 18
},
"end": {
"line": 102,
"column": 28
},
"identifierName": "desiredFps"
},
"name": "desiredFps"
},
"init": {
"type": "CallExpression",
"start": 3049,
"end": 3087,
"loc": {
"start": {
"line": 102,
"column": 31
},
"end": {
"line": 102,
"column": 69
}
},
"callee": {
"type": "MemberExpression",
"start": 3049,
"end": 3085,
"loc": {
"start": {
"line": 102,
"column": 31
},
"end": {
"line": 102,
"column": 67
}
},
"object": {
"type": "MemberExpression",
"start": 3049,
"end": 3071,
"loc": {
"start": {
"line": 102,
"column": 31
},
"end": {
"line": 102,
"column": 53
}
},
"object": {
"type": "MemberExpression",
"start": 3049,
"end": 3062,
"loc": {
"start": {
"line": 102,
"column": 31
},
"end": {
"line": 102,
"column": 44
}
},
"object": {
"type": "MemberExpression",
"start": 3049,
"end": 3058,
"loc": {
"start": {
"line": 102,
"column": 31
},
"end": {
"line": 102,
"column": 40
}
},
"object": {
"type": "ThisExpression",
"start": 3049,
"end": 3053,
"loc": {
"start": {
"line": 102,
"column": 31
},
"end": {
"line": 102,
"column": 35
}
}
},
"property": {
"type": "Identifier",
"start": 3054,
"end": 3058,
"loc": {
"start": {
"line": 102,
"column": 36
},
"end": {
"line": 102,
"column": 40
},
"identifierName": "root"
},
"name": "root"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 3059,
"end": 3062,
"loc": {
"start": {
"line": 102,
"column": 41
},
"end": {
"line": 102,
"column": 44
},
"identifierName": "app"
},
"name": "app"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 3063,
"end": 3071,
"loc": {
"start": {
"line": 102,
"column": 45
},
"end": {
"line": 102,
"column": 53
},
"identifierName": "settings"
},
"name": "settings"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 3072,
"end": 3085,
"loc": {
"start": {
"line": 102,
"column": 54
},
"end": {
"line": 102,
"column": 67
},
"identifierName": "getDesiredFps"
},
"name": "getDesiredFps"
},
"computed": false
},
"arguments": []
}
}
],
"kind": "const",
"trailingComments": [
{
"type": "CommentLine",
"value": " Disabled for now: Dynamicall adjusting tick rate",
"start": 3104,
"end": 3155,
"loc": {
"start": {
"line": 104,
"column": 12
},
"end": {
"line": 104,
"column": 63
}
}
},
{
"type": "CommentLine",
"value": " if (this.averageFps > desiredFps * 0.9) {",
"start": 3169,
"end": 3213,
"loc": {
"start": {
"line": 105,
"column": 12
},
"end": {
"line": 105,
"column": 56
}
}
},
{
"type": "CommentLine",
"value": " // if (average < maxTickDuration) {",
"start": 3227,
"end": 3269,
"loc": {
"start": {
"line": 106,
"column": 12
},
"end": {
"line": 106,
"column": 54
}
}
},
{
"type": "CommentLine",
"value": " this.increaseTickRate();",
"start": 3283,
"end": 3314,
"loc": {
"start": {
"line": 107,
"column": 12
},
"end": {
"line": 107,
"column": 43
}
}
},
{
"type": "CommentLine",
"value": " } else if (this.averageFps < desiredFps * 0.7) {",
"start": 3328,
"end": 3379,
"loc": {
"start": {
"line": 108,
"column": 12
},
"end": {
"line": 108,
"column": 63
}
}
},
{
"type": "CommentLine",
"value": " this.decreaseTickRate();",
"start": 3393,
"end": 3424,
"loc": {
"start": {
"line": 109,
"column": 12
},
"end": {
"line": 109,
"column": 43
}
}
},
{
"type": "CommentLine",
"value": " }",
"start": 3438,
"end": 3442,
"loc": {
"start": {
"line": 110,
"column": 12
},
"end": {
"line": 110,
"column": 16
}
}
}
]
},
{
"type": "ExpressionStatement",
"start": 3458,
"end": 3482,
"loc": {
"start": {
"line": 112,
"column": 12
},
"end": {
"line": 112,
"column": 36
}
},
"expression": {
"type": "AssignmentExpression",
"start": 3458,
"end": 3481,
"loc": {
"start": {
"line": 112,
"column": 12
},
"end": {
"line": 112,
"column": 35
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 3458,
"end": 3476,
"loc": {
"start": {
"line": 112,
"column": 12
},
"end": {
"line": 112,
"column": 30
}
},
"object": {
"type": "ThisExpression",
"start": 3458,
"end": 3462,
"loc": {
"start": {
"line": 112,
"column": 12
},
"end": {
"line": 112,
"column": 16
}
},
"leadingComments": null
},
"property": {
"type": "Identifier",
"start": 3463,
"end": 3476,
"loc": {
"start": {
"line": 112,
"column": 17
},
"end": {
"line": 112,
"column": 30
},
"identifierName": "capturedTicks"
},
"name": "capturedTicks"
},
"computed": false,
"leadingComments": null
},
"right": {
"type": "ArrayExpression",
"start": 3479,
"end": 3481,
"loc": {
"start": {
"line": 112,
"column": 33
},
"end": {
"line": 112,
"column": 35
}
},
"elements": []
},
"leadingComments": null
},
"leadingComments": [
{
"type": "CommentLine",
"value": " Disabled for now: Dynamicall adjusting tick rate",
"start": 3104,
"end": 3155,
"loc": {
"start": {
"line": 104,
"column": 12
},
"end": {
"line": 104,
"column": 63
}
}
},
{
"type": "CommentLine",
"value": " if (this.averageFps > desiredFps * 0.9) {",
"start": 3169,
"end": 3213,
"loc": {
"start": {
"line": 105,
"column": 12
},
"end": {
"line": 105,
"column": 56
}
}
},
{
"type": "CommentLine",
"value": " // if (average < maxTickDuration) {",
"start": 3227,
"end": 3269,
"loc": {
"start": {
"line": 106,
"column": 12
},
"end": {
"line": 106,
"column": 54
}
}
},
{
"type": "CommentLine",
"value": " this.increaseTickRate();",
"start": 3283,
"end": 3314,
"loc": {
"start": {
"line": 107,
"column": 12
},
"end": {
"line": 107,
"column": 43
}
}
},
{
"type": "CommentLine",
"value": " } else if (this.averageFps < desiredFps * 0.7) {",
"start": 3328,
"end": 3379,
"loc": {
"start": {
"line": 108,
"column": 12
},
"end": {
"line": 108,
"column": 63
}
}
},
{
"type": "CommentLine",
"value": " this.decreaseTickRate();",
"start": 3393,
"end": 3424,
"loc": {
"start": {
"line": 109,
"column": 12
},
"end": {
"line": 109,
"column": 43
}
}
},
{
"type": "CommentLine",
"value": " }",
"start": 3438,
"end": 3442,
"loc": {
"start": {
"line": 110,
"column": 12
},
"end": {
"line": 110,
"column": 16
}
}
}
]
}
],
"directives": []
},
"alternate": null
}
],
"directives": [],
"trailingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Call whenever a tick began\r\n ",
"start": 2271,
"end": 2318,
"loc": {
"start": {
"line": 81,
"column": 4
},
"end": {
"line": 83,
"column": 7
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Call whenever a tick ended\r\n ",
"start": 3508,
"end": 3555,
"loc": {
"start": {
"line": 116,
"column": 4
},
"end": {
"line": 118,
"column": 7
}
}
}
]
},
{
"type": "ClassMethod",
"start": 3561,
"end": 3816,
"loc": {
"start": {
"line": 119,
"column": 4
},
"end": {
"line": 124,
"column": 5
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 3561,
"end": 3568,
"loc": {
"start": {
"line": 119,
"column": 4
},
"end": {
"line": 119,
"column": 11
},
"identifierName": "endTick"
},
"name": "endTick",
"leadingComments": null
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 3571,
"end": 3816,
"loc": {
"start": {
"line": 119,
"column": 14
},
"end": {
"line": 124,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 3582,
"end": 3657,
"loc": {
"start": {
"line": 120,
"column": 8
},
"end": {
"line": 120,
"column": 83
}
},
"expression": {
"type": "CallExpression",
"start": 3582,
"end": 3656,
"loc": {
"start": {
"line": 120,
"column": 8
},
"end": {
"line": 120,
"column": 82
}
},
"callee": {
"type": "Identifier",
"start": 3582,
"end": 3588,
"loc": {
"start": {
"line": 120,
"column": 8
},
"end": {
"line": 120,
"column": 14
},
"identifierName": "assert"
},
"name": "assert"
},
"arguments": [
{
"type": "BinaryExpression",
"start": 3589,
"end": 3619,
"loc": {
"start": {
"line": 120,
"column": 15
},
"end": {
"line": 120,
"column": 45
}
},
"left": {
"type": "MemberExpression",
"start": 3589,
"end": 3610,
"loc": {
"start": {
"line": 120,
"column": 15
},
"end": {
"line": 120,
"column": 36
}
},
"object": {
"type": "ThisExpression",
"start": 3589,
"end": 3593,
"loc": {
"start": {
"line": 120,
"column": 15
},
"end": {
"line": 120,
"column": 19
}
}
},
"property": {
"type": "Identifier",
"start": 3594,
"end": 3610,
"loc": {
"start": {
"line": 120,
"column": 20
},
"end": {
"line": 120,
"column": 36
},
"identifierName": "currentTickStart"
},
"name": "currentTickStart"
},
"computed": false
},
"operator": "!==",
"right": {
"type": "NullLiteral",
"start": 3615,
"end": 3619,
"loc": {
"start": {
"line": 120,
"column": 41
},
"end": {
"line": 120,
"column": 45
}
}
}
},
{
"type": "StringLiteral",
"start": 3621,
"end": 3655,
"loc": {
"start": {
"line": 120,
"column": 47
},
"end": {
"line": 120,
"column": 81
}
},
"extra": {
"rawValue": "EndTick called without BeginTick",
"raw": "\"EndTick called without BeginTick\""
},
"value": "EndTick called without BeginTick"
}
]
}
},
{
"type": "VariableDeclaration",
"start": 3667,
"end": 3726,
"loc": {
"start": {
"line": 121,
"column": 8
},
"end": {
"line": 121,
"column": 67
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 3673,
"end": 3725,
"loc": {
"start": {
"line": 121,
"column": 14
},
"end": {
"line": 121,
"column": 66
}
},
"id": {
"type": "Identifier",
"start": 3673,
"end": 3681,
"loc": {
"start": {
"line": 121,
"column": 14
},
"end": {
"line": 121,
"column": 22
},
"identifierName": "duration"
},
"name": "duration"
},
"init": {
"type": "BinaryExpression",
"start": 3684,
"end": 3725,
"loc": {
"start": {
"line": 121,
"column": 25
},
"end": {
"line": 121,
"column": 66
}
},
"left": {
"type": "CallExpression",
"start": 3684,
"end": 3701,
"loc": {
"start": {
"line": 121,
"column": 25
},
"end": {
"line": 121,
"column": 42
}
},
"callee": {
"type": "MemberExpression",
"start": 3684,
"end": 3699,
"loc": {
"start": {
"line": 121,
"column": 25
},
"end": {
"line": 121,
"column": 40
}
},
"object": {
"type": "Identifier",
"start": 3684,
"end": 3695,
"loc": {
"start": {
"line": 121,
"column": 25
},
"end": {
"line": 121,
"column": 36
},
"identifierName": "performance"
},
"name": "performance"
},
"property": {
"type": "Identifier",
"start": 3696,
"end": 3699,
"loc": {
"start": {
"line": 121,
"column": 37
},
"end": {
"line": 121,
"column": 40
},
"identifierName": "now"
},
"name": "now"
},
"computed": false
},
"arguments": []
},
"operator": "-",
"right": {
"type": "MemberExpression",
"start": 3704,
"end": 3725,
"loc": {
"start": {
"line": 121,
"column": 45
},
"end": {
"line": 121,
"column": 66
}
},
"object": {
"type": "ThisExpression",
"start": 3704,
"end": 3708,
"loc": {
"start": {
"line": 121,
"column": 45
},
"end": {
"line": 121,
"column": 49
}
}
},
"property": {
"type": "Identifier",
"start": 3709,
"end": 3725,
"loc": {
"start": {
"line": 121,
"column": 50
},
"end": {
"line": 121,
"column": 66
},
"identifierName": "currentTickStart"
},
"name": "currentTickStart"
},
"computed": false
}
}
}
],
"kind": "const"
},
{
"type": "ExpressionStatement",
"start": 3736,
"end": 3770,
"loc": {
"start": {
"line": 122,
"column": 8
},
"end": {
"line": 122,
"column": 42
}
},
"expression": {
"type": "CallExpression",
"start": 3736,
"end": 3769,
"loc": {
"start": {
"line": 122,
"column": 8
},
"end": {
"line": 122,
"column": 41
}
},
"callee": {
"type": "MemberExpression",
"start": 3736,
"end": 3759,
"loc": {
"start": {
"line": 122,
"column": 8
},
"end": {
"line": 122,
"column": 31
}
},
"object": {
"type": "MemberExpression",
"start": 3736,
"end": 3754,
"loc": {
"start": {
"line": 122,
"column": 8
},
"end": {
"line": 122,
"column": 26
}
},
"object": {
"type": "ThisExpression",
"start": 3736,
"end": 3740,
"loc": {
"start": {
"line": 122,
"column": 8
},
"end": {
"line": 122,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 3741,
"end": 3754,
"loc": {
"start": {
"line": 122,
"column": 13
},
"end": {
"line": 122,
"column": 26
},
"identifierName": "capturedTicks"
},
"name": "capturedTicks"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 3755,
"end": 3759,
"loc": {
"start": {
"line": 122,
"column": 27
},
"end": {
"line": 122,
"column": 31
},
"identifierName": "push"
},
"name": "push"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"start": 3760,
"end": 3768,
"loc": {
"start": {
"line": 122,
"column": 32
},
"end": {
"line": 122,
"column": 40
},
"identifierName": "duration"
},
"name": "duration"
}
]
}
},
{
"type": "ExpressionStatement",
"start": 3780,
"end": 3809,
"loc": {
"start": {
"line": 123,
"column": 8
},
"end": {
"line": 123,
"column": 37
}
},
"expression": {
"type": "AssignmentExpression",
"start": 3780,
"end": 3808,
"loc": {
"start": {
"line": 123,
"column": 8
},
"end": {
"line": 123,
"column": 36
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 3780,
"end": 3801,
"loc": {
"start": {
"line": 123,
"column": 8
},
"end": {
"line": 123,
"column": 29
}
},
"object": {
"type": "ThisExpression",
"start": 3780,
"end": 3784,
"loc": {
"start": {
"line": 123,
"column": 8
},
"end": {
"line": 123,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 3785,
"end": 3801,
"loc": {
"start": {
"line": 123,
"column": 13
},
"end": {
"line": 123,
"column": 29
},
"identifierName": "currentTickStart"
},
"name": "currentTickStart"
},
"computed": false
},
"right": {
"type": "NullLiteral",
"start": 3804,
"end": 3808,
"loc": {
"start": {
"line": 123,
"column": 32
},
"end": {
"line": 123,
"column": 36
}
}
}
}
}
],
"directives": []
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Call whenever a tick ended\r\n ",
"start": 3508,
"end": 3555,
"loc": {
"start": {
"line": 116,
"column": 4
},
"end": {
"line": 118,
"column": 7
}
}
}
]
}
]
},
"leadingComments": [],
"trailingComments": []
}
}
],
"directives": []
},
"comments": [
{
"type": "CommentBlock",
"value": "*\r\n *\r\n * @param {GameRoot} root\r\n ",
"start": 260,
"end": 311,
"loc": {
"start": {
"line": 10,
"column": 4
},
"end": {
"line": 13,
"column": 7
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Sets the tick rate to N updates per second\r\n * @param {number} rate\r\n ",
"start": 1231,
"end": 1323,
"loc": {
"start": {
"line": 46,
"column": 4
},
"end": {
"line": 49,
"column": 7
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Increases the tick rate marginally\r\n ",
"start": 1565,
"end": 1620,
"loc": {
"start": {
"line": 57,
"column": 4
},
"end": {
"line": 59,
"column": 7
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Decreases the tick rate marginally\r\n ",
"start": 1916,
"end": 1971,
"loc": {
"start": {
"line": 69,
"column": 4
},
"end": {
"line": 71,
"column": 7
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Call whenever a tick began\r\n ",
"start": 2271,
"end": 2318,
"loc": {
"start": {
"line": 81,
"column": 4
},
"end": {
"line": 83,
"column": 7
}
}
},
{
"type": "CommentLine",
"value": " Take only a portion of the ticks",
"start": 2549,
"end": 2584,
"loc": {
"start": {
"line": 89,
"column": 12
},
"end": {
"line": 89,
"column": 47
}
}
},
{
"type": "CommentLine",
"value": " Disabled for now: Dynamicall adjusting tick rate",
"start": 3104,
"end": 3155,
"loc": {
"start": {
"line": 104,
"column": 12
},
"end": {
"line": 104,
"column": 63
}
}
},
{
"type": "CommentLine",
"value": " if (this.averageFps > desiredFps * 0.9) {",
"start": 3169,
"end": 3213,
"loc": {
"start": {
"line": 105,
"column": 12
},
"end": {
"line": 105,
"column": 56
}
}
},
{
"type": "CommentLine",
"value": " // if (average < maxTickDuration) {",
"start": 3227,
"end": 3269,
"loc": {
"start": {
"line": 106,
"column": 12
},
"end": {
"line": 106,
"column": 54
}
}
},
{
"type": "CommentLine",
"value": " this.increaseTickRate();",
"start": 3283,
"end": 3314,
"loc": {
"start": {
"line": 107,
"column": 12
},
"end": {
"line": 107,
"column": 43
}
}
},
{
"type": "CommentLine",
"value": " } else if (this.averageFps < desiredFps * 0.7) {",
"start": 3328,
"end": 3379,
"loc": {
"start": {
"line": 108,
"column": 12
},
"end": {
"line": 108,
"column": 63
}
}
},
{
"type": "CommentLine",
"value": " this.decreaseTickRate();",
"start": 3393,
"end": 3424,
"loc": {
"start": {
"line": 109,
"column": 12
},
"end": {
"line": 109,
"column": 43
}
}
},
{
"type": "CommentLine",
"value": " }",
"start": 3438,
"end": 3442,
"loc": {
"start": {
"line": 110,
"column": 12
},
"end": {
"line": 110,
"column": 16
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Call whenever a tick ended\r\n ",
"start": 3508,
"end": 3555,
"loc": {
"start": {
"line": 116,
"column": 4
},
"end": {
"line": 118,
"column": 7
}
}
}
],
"tokens": [
{
"type": {
"label": "import",
"keyword": "import",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "import",
"start": 0,
"end": 6,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 6
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7,
"end": 8,
"loc": {
"start": {
"line": 1,
"column": 7
},
"end": {
"line": 1,
"column": 8
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "GameRoot",
"start": 9,
"end": 17,
"loc": {
"start": {
"line": 1,
"column": 9
},
"end": {
"line": 1,
"column": 17
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 18,
"end": 19,
"loc": {
"start": {
"line": 1,
"column": 18
},
"end": {
"line": 1,
"column": 19
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "from",
"start": 20,
"end": 24,
"loc": {
"start": {
"line": 1,
"column": 20
},
"end": {
"line": 1,
"column": 24
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "./root",
"start": 25,
"end": 33,
"loc": {
"start": {
"line": 1,
"column": 25
},
"end": {
"line": 1,
"column": 33
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 33,
"end": 34,
"loc": {
"start": {
"line": 1,
"column": 33
},
"end": {
"line": 1,
"column": 34
}
}
},
{
"type": {
"label": "import",
"keyword": "import",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "import",
"start": 36,
"end": 42,
"loc": {
"start": {
"line": 2,
"column": 0
},
"end": {
"line": 2,
"column": 6
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 43,
"end": 44,
"loc": {
"start": {
"line": 2,
"column": 7
},
"end": {
"line": 2,
"column": 8
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "createLogger",
"start": 45,
"end": 57,
"loc": {
"start": {
"line": 2,
"column": 9
},
"end": {
"line": 2,
"column": 21
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 58,
"end": 59,
"loc": {
"start": {
"line": 2,
"column": 22
},
"end": {
"line": 2,
"column": 23
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "from",
"start": 60,
"end": 64,
"loc": {
"start": {
"line": 2,
"column": 24
},
"end": {
"line": 2,
"column": 28
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "../core/logging",
"start": 65,
"end": 82,
"loc": {
"start": {
"line": 2,
"column": 29
},
"end": {
"line": 2,
"column": 46
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 82,
"end": 83,
"loc": {
"start": {
"line": 2,
"column": 46
},
"end": {
"line": 2,
"column": 47
}
}
},
{
"type": {
"label": "import",
"keyword": "import",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "import",
"start": 85,
"end": 91,
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
"line": 3,
"column": 6
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 92,
"end": 93,
"loc": {
"start": {
"line": 3,
"column": 7
},
"end": {
"line": 3,
"column": 8
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "globalConfig",
"start": 94,
"end": 106,
"loc": {
"start": {
"line": 3,
"column": 9
},
"end": {
"line": 3,
"column": 21
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 107,
"end": 108,
"loc": {
"start": {
"line": 3,
"column": 22
},
"end": {
"line": 3,
"column": 23
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "from",
"start": 109,
"end": 113,
"loc": {
"start": {
"line": 3,
"column": 24
},
"end": {
"line": 3,
"column": 28
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "../core/config",
"start": 114,
"end": 130,
"loc": {
"start": {
"line": 3,
"column": 29
},
"end": {
"line": 3,
"column": 45
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 130,
"end": 131,
"loc": {
"start": {
"line": 3,
"column": 45
},
"end": {
"line": 3,
"column": 46
}
}
},
{
"type": {
"label": "const",
"keyword": "const",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "const",
"start": 135,
"end": 140,
"loc": {
"start": {
"line": 5,
"column": 0
},
"end": {
"line": 5,
"column": 5
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "logger",
"start": 141,
"end": 147,
"loc": {
"start": {
"line": 5,
"column": 6
},
"end": {
"line": 5,
"column": 12
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 148,
"end": 149,
"loc": {
"start": {
"line": 5,
"column": 13
},
"end": {
"line": 5,
"column": 14
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "createLogger",
"start": 150,
"end": 162,
"loc": {
"start": {
"line": 5,
"column": 15
},
"end": {
"line": 5,
"column": 27
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 162,
"end": 163,
"loc": {
"start": {
"line": 5,
"column": 27
},
"end": {
"line": 5,
"column": 28
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "dynamic_tickrate",
"start": 163,
"end": 181,
"loc": {
"start": {
"line": 5,
"column": 28
},
"end": {
"line": 5,
"column": 46
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 181,
"end": 182,
"loc": {
"start": {
"line": 5,
"column": 46
},
"end": {
"line": 5,
"column": 47
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 182,
"end": 183,
"loc": {
"start": {
"line": 5,
"column": 47
},
"end": {
"line": 5,
"column": 48
}
}
},
{
"type": {
"label": "const",
"keyword": "const",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "const",
"start": 187,
"end": 192,
"loc": {
"start": {
"line": 7,
"column": 0
},
"end": {
"line": 7,
"column": 5
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "fpsAccumulationTime",
"start": 193,
"end": 212,
"loc": {
"start": {
"line": 7,
"column": 6
},
"end": {
"line": 7,
"column": 25
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 213,
"end": 214,
"loc": {
"start": {
"line": 7,
"column": 26
},
"end": {
"line": 7,
"column": 27
}
}
},
{
"type": {
"label": "num",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": 1000,
"start": 215,
"end": 219,
"loc": {
"start": {
"line": 7,
"column": 28
},
"end": {
"line": 7,
"column": 32
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 219,
"end": 220,
"loc": {
"start": {
"line": 7,
"column": 32
},
"end": {
"line": 7,
"column": 33
}
}
},
{
"type": {
"label": "export",
"keyword": "export",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "export",
"start": 224,
"end": 230,
"loc": {
"start": {
"line": 9,
"column": 0
},
"end": {
"line": 9,
"column": 6
}
}
},
{
"type": {
"label": "class",
"keyword": "class",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "class",
"start": 231,
"end": 236,
"loc": {
"start": {
"line": 9,
"column": 7
},
"end": {
"line": 9,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "DynamicTickrate",
"start": 237,
"end": 252,
"loc": {
"start": {
"line": 9,
"column": 13
},
"end": {
"line": 9,
"column": 28
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 253,
"end": 254,
"loc": {
"start": {
"line": 9,
"column": 29
},
"end": {
"line": 9,
"column": 30
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n *\r\n * @param {GameRoot} root\r\n ",
"start": 260,
"end": 311,
"loc": {
"start": {
"line": 10,
"column": 4
},
"end": {
"line": 13,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "constructor",
"start": 317,
"end": 328,
"loc": {
"start": {
"line": 14,
"column": 4
},
"end": {
"line": 14,
"column": 15
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 328,
"end": 329,
"loc": {
"start": {
"line": 14,
"column": 15
},
"end": {
"line": 14,
"column": 16
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "root",
"start": 329,
"end": 333,
"loc": {
"start": {
"line": 14,
"column": 16
},
"end": {
"line": 14,
"column": 20
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 333,
"end": 334,
"loc": {
"start": {
"line": 14,
"column": 20
},
"end": {
"line": 14,
"column": 21
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 335,
"end": 336,
"loc": {
"start": {
"line": 14,
"column": 22
},
"end": {
"line": 14,
"column": 23
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 346,
"end": 350,
"loc": {
"start": {
"line": 15,
"column": 8
},
"end": {
"line": 15,
"column": 12
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 350,
"end": 351,
"loc": {
"start": {
"line": 15,
"column": 12
},
"end": {
"line": 15,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "root",
"start": 351,
"end": 355,
"loc": {
"start": {
"line": 15,
"column": 13
},
"end": {
"line": 15,
"column": 17
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 356,
"end": 357,
"loc": {
"start": {
"line": 15,
"column": 18
},
"end": {
"line": 15,
"column": 19
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "root",
"start": 358,
"end": 362,
"loc": {
"start": {
"line": 15,
"column": 20
},
"end": {
"line": 15,
"column": 24
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 362,
"end": 363,
"loc": {
"start": {
"line": 15,
"column": 24
},
"end": {
"line": 15,
"column": 25
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 375,
"end": 379,
"loc": {
"start": {
"line": 17,
"column": 8
},
"end": {
"line": 17,
"column": 12
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 379,
"end": 380,
"loc": {
"start": {
"line": 17,
"column": 12
},
"end": {
"line": 17,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "currentTickStart",
"start": 380,
"end": 396,
"loc": {
"start": {
"line": 17,
"column": 13
},
"end": {
"line": 17,
"column": 29
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 397,
"end": 398,
"loc": {
"start": {
"line": 17,
"column": 30
},
"end": {
"line": 17,
"column": 31
}
}
},
{
"type": {
"label": "null",
"keyword": "null",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "null",
"start": 399,
"end": 403,
"loc": {
"start": {
"line": 17,
"column": 32
},
"end": {
"line": 17,
"column": 36
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 403,
"end": 404,
"loc": {
"start": {
"line": 17,
"column": 36
},
"end": {
"line": 17,
"column": 37
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 414,
"end": 418,
"loc": {
"start": {
"line": 18,
"column": 8
},
"end": {
"line": 18,
"column": 12
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 418,
"end": 419,
"loc": {
"start": {
"line": 18,
"column": 12
},
"end": {
"line": 18,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "capturedTicks",
"start": 419,
"end": 432,
"loc": {
"start": {
"line": 18,
"column": 13
},
"end": {
"line": 18,
"column": 26
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 433,
"end": 434,
"loc": {
"start": {
"line": 18,
"column": 27
},
"end": {
"line": 18,
"column": 28
}
}
},
{
"type": {
"label": "[",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 435,
"end": 436,
"loc": {
"start": {
"line": 18,
"column": 29
},
"end": {
"line": 18,
"column": 30
}
}
},
{
"type": {
"label": "]",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 436,
"end": 437,
"loc": {
"start": {
"line": 18,
"column": 30
},
"end": {
"line": 18,
"column": 31
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 437,
"end": 438,
"loc": {
"start": {
"line": 18,
"column": 31
},
"end": {
"line": 18,
"column": 32
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 448,
"end": 452,
"loc": {
"start": {
"line": 19,
"column": 8
},
"end": {
"line": 19,
"column": 12
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 452,
"end": 453,
"loc": {
"start": {
"line": 19,
"column": 12
},
"end": {
"line": 19,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "averageTickDuration",
"start": 453,
"end": 472,
"loc": {
"start": {
"line": 19,
"column": 13
},
"end": {
"line": 19,
"column": 32
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 473,
"end": 474,
"loc": {
"start": {
"line": 19,
"column": 33
},
"end": {
"line": 19,
"column": 34
}
}
},
{
"type": {
"label": "num",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": 0,
"start": 475,
"end": 476,
"loc": {
"start": {
"line": 19,
"column": 35
},
"end": {
"line": 19,
"column": 36
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 476,
"end": 477,
"loc": {
"start": {
"line": 19,
"column": 36
},
"end": {
"line": 19,
"column": 37
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 489,
"end": 493,
"loc": {
"start": {
"line": 21,
"column": 8
},
"end": {
"line": 21,
"column": 12
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 493,
"end": 494,
"loc": {
"start": {
"line": 21,
"column": 12
},
"end": {
"line": 21,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "accumulatedFps",
"start": 494,
"end": 508,
"loc": {
"start": {
"line": 21,
"column": 13
},
"end": {
"line": 21,
"column": 27
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 509,
"end": 510,
"loc": {
"start": {
"line": 21,
"column": 28
},
"end": {
"line": 21,
"column": 29
}
}
},
{
"type": {
"label": "num",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": 0,
"start": 511,
"end": 512,
"loc": {
"start": {
"line": 21,
"column": 30
},
"end": {
"line": 21,
"column": 31
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 512,
"end": 513,
"loc": {
"start": {
"line": 21,
"column": 31
},
"end": {
"line": 21,
"column": 32
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 523,
"end": 527,
"loc": {
"start": {
"line": 22,
"column": 8
},
"end": {
"line": 22,
"column": 12
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 527,
"end": 528,
"loc": {
"start": {
"line": 22,
"column": 12
},
"end": {
"line": 22,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "accumulatedFpsLastUpdate",
"start": 528,
"end": 552,
"loc": {
"start": {
"line": 22,
"column": 13
},
"end": {
"line": 22,
"column": 37
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 553,
"end": 554,
"loc": {
"start": {
"line": 22,
"column": 38
},
"end": {
"line": 22,
"column": 39
}
}
},
{
"type": {
"label": "num",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": 0,
"start": 555,
"end": 556,
"loc": {
"start": {
"line": 22,
"column": 40
},
"end": {
"line": 22,
"column": 41
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 556,
"end": 557,
"loc": {
"start": {
"line": 22,
"column": 41
},
"end": {
"line": 22,
"column": 42
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 569,
"end": 573,
"loc": {
"start": {
"line": 24,
"column": 8
},
"end": {
"line": 24,
"column": 12
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 573,
"end": 574,
"loc": {
"start": {
"line": 24,
"column": 12
},
"end": {
"line": 24,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "averageFps",
"start": 574,
"end": 584,
"loc": {
"start": {
"line": 24,
"column": 13
},
"end": {
"line": 24,
"column": 23
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 585,
"end": 586,
"loc": {
"start": {
"line": 24,
"column": 24
},
"end": {
"line": 24,
"column": 25
}
}
},
{
"type": {
"label": "num",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": 60,
"start": 587,
"end": 589,
"loc": {
"start": {
"line": 24,
"column": 26
},
"end": {
"line": 24,
"column": 28
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 589,
"end": 590,
"loc": {
"start": {
"line": 24,
"column": 28
},
"end": {
"line": 24,
"column": 29
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 602,
"end": 606,
"loc": {
"start": {
"line": 26,
"column": 8
},
"end": {
"line": 26,
"column": 12
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 606,
"end": 607,
"loc": {
"start": {
"line": 26,
"column": 12
},
"end": {
"line": 26,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "setTickRate",
"start": 607,
"end": 618,
"loc": {
"start": {
"line": 26,
"column": 13
},
"end": {
"line": 26,
"column": 24
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 618,
"end": 619,
"loc": {
"start": {
"line": 26,
"column": 24
},
"end": {
"line": 26,
"column": 25
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 619,
"end": 623,
"loc": {
"start": {
"line": 26,
"column": 25
},
"end": {
"line": 26,
"column": 29
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 623,
"end": 624,
"loc": {
"start": {
"line": 26,
"column": 29
},
"end": {
"line": 26,
"column": 30
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "root",
"start": 624,
"end": 628,
"loc": {
"start": {
"line": 26,
"column": 30
},
"end": {
"line": 26,
"column": 34
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 628,
"end": 629,
"loc": {
"start": {
"line": 26,
"column": 34
},
"end": {
"line": 26,
"column": 35
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "app",
"start": 629,
"end": 632,
"loc": {
"start": {
"line": 26,
"column": 35
},
"end": {
"line": 26,
"column": 38
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 632,
"end": 633,
"loc": {
"start": {
"line": 26,
"column": 38
},
"end": {
"line": 26,
"column": 39
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "settings",
"start": 633,
"end": 641,
"loc": {
"start": {
"line": 26,
"column": 39
},
"end": {
"line": 26,
"column": 47
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 641,
"end": 642,
"loc": {
"start": {
"line": 26,
"column": 47
},
"end": {
"line": 26,
"column": 48
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "getDesiredFps",
"start": 642,
"end": 655,
"loc": {
"start": {
"line": 26,
"column": 48
},
"end": {
"line": 26,
"column": 61
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 655,
"end": 656,
"loc": {
"start": {
"line": 26,
"column": 61
},
"end": {
"line": 26,
"column": 62
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 656,
"end": 657,
"loc": {
"start": {
"line": 26,
"column": 62
},
"end": {
"line": 26,
"column": 63
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 657,
"end": 658,
"loc": {
"start": {
"line": 26,
"column": 63
},
"end": {
"line": 26,
"column": 64
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 658,
"end": 659,
"loc": {
"start": {
"line": 26,
"column": 64
},
"end": {
"line": 26,
"column": 65
}
}
},
{
"type": {
"label": "if",
"keyword": "if",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "if",
"start": 671,
"end": 673,
"loc": {
"start": {
"line": 28,
"column": 8
},
"end": {
"line": 28,
"column": 10
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 674,
"end": 675,
"loc": {
"start": {
"line": 28,
"column": 11
},
"end": {
"line": 28,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "G_IS_DEV",
"start": 675,
"end": 683,
"loc": {
"start": {
"line": 28,
"column": 12
},
"end": {
"line": 28,
"column": 20
}
}
},
{
"type": {
"label": "&&",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 2,
"updateContext": null
},
"value": "&&",
"start": 684,
"end": 686,
"loc": {
"start": {
"line": 28,
"column": 21
},
"end": {
"line": 28,
"column": 23
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "globalConfig",
"start": 687,
"end": 699,
"loc": {
"start": {
"line": 28,
"column": 24
},
"end": {
"line": 28,
"column": 36
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 699,
"end": 700,
"loc": {
"start": {
"line": 28,
"column": 36
},
"end": {
"line": 28,
"column": 37
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "debug",
"start": 700,
"end": 705,
"loc": {
"start": {
"line": 28,
"column": 37
},
"end": {
"line": 28,
"column": 42
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 705,
"end": 706,
"loc": {
"start": {
"line": 28,
"column": 42
},
"end": {
"line": 28,
"column": 43
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "renderForTrailer",
"start": 706,
"end": 722,
"loc": {
"start": {
"line": 28,
"column": 43
},
"end": {
"line": 28,
"column": 59
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 722,
"end": 723,
"loc": {
"start": {
"line": 28,
"column": 59
},
"end": {
"line": 28,
"column": 60
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 724,
"end": 725,
"loc": {
"start": {
"line": 28,
"column": 61
},
"end": {
"line": 28,
"column": 62
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 739,
"end": 743,
"loc": {
"start": {
"line": 29,
"column": 12
},
"end": {
"line": 29,
"column": 16
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 743,
"end": 744,
"loc": {
"start": {
"line": 29,
"column": 16
},
"end": {
"line": 29,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "setTickRate",
"start": 744,
"end": 755,
"loc": {
"start": {
"line": 29,
"column": 17
},
"end": {
"line": 29,
"column": 28
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 755,
"end": 756,
"loc": {
"start": {
"line": 29,
"column": 28
},
"end": {
"line": 29,
"column": 29
}
}
},
{
"type": {
"label": "num",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": 300,
"start": 756,
"end": 759,
"loc": {
"start": {
"line": 29,
"column": 29
},
"end": {
"line": 29,
"column": 32
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 759,
"end": 760,
"loc": {
"start": {
"line": 29,
"column": 32
},
"end": {
"line": 29,
"column": 33
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 760,
"end": 761,
"loc": {
"start": {
"line": 29,
"column": 33
},
"end": {
"line": 29,
"column": 34
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 771,
"end": 772,
"loc": {
"start": {
"line": 30,
"column": 8
},
"end": {
"line": 30,
"column": 9
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 778,
"end": 779,
"loc": {
"start": {
"line": 31,
"column": 4
},
"end": {
"line": 31,
"column": 5
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "onFrameRendered",
"start": 787,
"end": 802,
"loc": {
"start": {
"line": 33,
"column": 4
},
"end": {
"line": 33,
"column": 19
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 802,
"end": 803,
"loc": {
"start": {
"line": 33,
"column": 19
},
"end": {
"line": 33,
"column": 20
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 803,
"end": 804,
"loc": {
"start": {
"line": 33,
"column": 20
},
"end": {
"line": 33,
"column": 21
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 805,
"end": 806,
"loc": {
"start": {
"line": 33,
"column": 22
},
"end": {
"line": 33,
"column": 23
}
}
},
{
"type": {
"label": "++/--",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": true,
"postfix": true,
"binop": null
},
"value": "++",
"start": 816,
"end": 818,
"loc": {
"start": {
"line": 34,
"column": 8
},
"end": {
"line": 34,
"column": 10
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 818,
"end": 822,
"loc": {
"start": {
"line": 34,
"column": 10
},
"end": {
"line": 34,
"column": 14
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 822,
"end": 823,
"loc": {
"start": {
"line": 34,
"column": 14
},
"end": {
"line": 34,
"column": 15
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "accumulatedFps",
"start": 823,
"end": 837,
"loc": {
"start": {
"line": 34,
"column": 15
},
"end": {
"line": 34,
"column": 29
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 837,
"end": 838,
"loc": {
"start": {
"line": 34,
"column": 29
},
"end": {
"line": 34,
"column": 30
}
}
},
{
"type": {
"label": "const",
"keyword": "const",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "const",
"start": 850,
"end": 855,
"loc": {
"start": {
"line": 36,
"column": 8
},
"end": {
"line": 36,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "now",
"start": 856,
"end": 859,
"loc": {
"start": {
"line": 36,
"column": 14
},
"end": {
"line": 36,
"column": 17
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 860,
"end": 861,
"loc": {
"start": {
"line": 36,
"column": 18
},
"end": {
"line": 36,
"column": 19
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "performance",
"start": 862,
"end": 873,
"loc": {
"start": {
"line": 36,
"column": 20
},
"end": {
"line": 36,
"column": 31
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 873,
"end": 874,
"loc": {
"start": {
"line": 36,
"column": 31
},
"end": {
"line": 36,
"column": 32
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "now",
"start": 874,
"end": 877,
"loc": {
"start": {
"line": 36,
"column": 32
},
"end": {
"line": 36,
"column": 35
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 877,
"end": 878,
"loc": {
"start": {
"line": 36,
"column": 35
},
"end": {
"line": 36,
"column": 36
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 878,
"end": 879,
"loc": {
"start": {
"line": 36,
"column": 36
},
"end": {
"line": 36,
"column": 37
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 879,
"end": 880,
"loc": {
"start": {
"line": 36,
"column": 37
},
"end": {
"line": 36,
"column": 38
}
}
},
{
"type": {
"label": "const",
"keyword": "const",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "const",
"start": 890,
"end": 895,
"loc": {
"start": {
"line": 37,
"column": 8
},
"end": {
"line": 37,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "timeDuration",
"start": 896,
"end": 908,
"loc": {
"start": {
"line": 37,
"column": 14
},
"end": {
"line": 37,
"column": 26
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 909,
"end": 910,
"loc": {
"start": {
"line": 37,
"column": 27
},
"end": {
"line": 37,
"column": 28
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "now",
"start": 911,
"end": 914,
"loc": {
"start": {
"line": 37,
"column": 29
},
"end": {
"line": 37,
"column": 32
}
}
},
{
"type": {
"label": "+/-",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": true,
"postfix": false,
"binop": 9,
"updateContext": null
},
"value": "-",
"start": 915,
"end": 916,
"loc": {
"start": {
"line": 37,
"column": 33
},
"end": {
"line": 37,
"column": 34
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 917,
"end": 921,
"loc": {
"start": {
"line": 37,
"column": 35
},
"end": {
"line": 37,
"column": 39
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 921,
"end": 922,
"loc": {
"start": {
"line": 37,
"column": 39
},
"end": {
"line": 37,
"column": 40
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "accumulatedFpsLastUpdate",
"start": 922,
"end": 946,
"loc": {
"start": {
"line": 37,
"column": 40
},
"end": {
"line": 37,
"column": 64
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 946,
"end": 947,
"loc": {
"start": {
"line": 37,
"column": 64
},
"end": {
"line": 37,
"column": 65
}
}
},
{
"type": {
"label": "if",
"keyword": "if",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "if",
"start": 957,
"end": 959,
"loc": {
"start": {
"line": 38,
"column": 8
},
"end": {
"line": 38,
"column": 10
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 960,
"end": 961,
"loc": {
"start": {
"line": 38,
"column": 11
},
"end": {
"line": 38,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "timeDuration",
"start": 961,
"end": 973,
"loc": {
"start": {
"line": 38,
"column": 12
},
"end": {
"line": 38,
"column": 24
}
}
},
{
"type": {
"label": "</>",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 7,
"updateContext": null
},
"value": ">",
"start": 974,
"end": 975,
"loc": {
"start": {
"line": 38,
"column": 25
},
"end": {
"line": 38,
"column": 26
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "fpsAccumulationTime",
"start": 976,
"end": 995,
"loc": {
"start": {
"line": 38,
"column": 27
},
"end": {
"line": 38,
"column": 46
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 995,
"end": 996,
"loc": {
"start": {
"line": 38,
"column": 46
},
"end": {
"line": 38,
"column": 47
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 997,
"end": 998,
"loc": {
"start": {
"line": 38,
"column": 48
},
"end": {
"line": 38,
"column": 49
}
}
},
{
"type": {
"label": "const",
"keyword": "const",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "const",
"start": 1012,
"end": 1017,
"loc": {
"start": {
"line": 39,
"column": 12
},
"end": {
"line": 39,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "avgFps",
"start": 1018,
"end": 1024,
"loc": {
"start": {
"line": 39,
"column": 18
},
"end": {
"line": 39,
"column": 24
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 1025,
"end": 1026,
"loc": {
"start": {
"line": 39,
"column": 25
},
"end": {
"line": 39,
"column": 26
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1027,
"end": 1028,
"loc": {
"start": {
"line": 39,
"column": 27
},
"end": {
"line": 39,
"column": 28
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 1028,
"end": 1032,
"loc": {
"start": {
"line": 39,
"column": 28
},
"end": {
"line": 39,
"column": 32
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1032,
"end": 1033,
"loc": {
"start": {
"line": 39,
"column": 32
},
"end": {
"line": 39,
"column": 33
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "accumulatedFps",
"start": 1033,
"end": 1047,
"loc": {
"start": {
"line": 39,
"column": 33
},
"end": {
"line": 39,
"column": 47
}
}
},
{
"type": {
"label": "/",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 10,
"updateContext": null
},
"value": "/",
"start": 1048,
"end": 1049,
"loc": {
"start": {
"line": 39,
"column": 48
},
"end": {
"line": 39,
"column": 49
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "fpsAccumulationTime",
"start": 1050,
"end": 1069,
"loc": {
"start": {
"line": 39,
"column": 50
},
"end": {
"line": 39,
"column": 69
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1069,
"end": 1070,
"loc": {
"start": {
"line": 39,
"column": 69
},
"end": {
"line": 39,
"column": 70
}
}
},
{
"type": {
"label": "*",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 10,
"updateContext": null
},
"value": "*",
"start": 1071,
"end": 1072,
"loc": {
"start": {
"line": 39,
"column": 71
},
"end": {
"line": 39,
"column": 72
}
}
},
{
"type": {
"label": "num",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": 1000,
"start": 1073,
"end": 1077,
"loc": {
"start": {
"line": 39,
"column": 73
},
"end": {
"line": 39,
"column": 77
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1077,
"end": 1078,
"loc": {
"start": {
"line": 39,
"column": 77
},
"end": {
"line": 39,
"column": 78
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 1092,
"end": 1096,
"loc": {
"start": {
"line": 40,
"column": 12
},
"end": {
"line": 40,
"column": 16
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1096,
"end": 1097,
"loc": {
"start": {
"line": 40,
"column": 16
},
"end": {
"line": 40,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "averageFps",
"start": 1097,
"end": 1107,
"loc": {
"start": {
"line": 40,
"column": 17
},
"end": {
"line": 40,
"column": 27
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 1108,
"end": 1109,
"loc": {
"start": {
"line": 40,
"column": 28
},
"end": {
"line": 40,
"column": 29
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "avgFps",
"start": 1110,
"end": 1116,
"loc": {
"start": {
"line": 40,
"column": 30
},
"end": {
"line": 40,
"column": 36
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1116,
"end": 1117,
"loc": {
"start": {
"line": 40,
"column": 36
},
"end": {
"line": 40,
"column": 37
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 1131,
"end": 1135,
"loc": {
"start": {
"line": 41,
"column": 12
},
"end": {
"line": 41,
"column": 16
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1135,
"end": 1136,
"loc": {
"start": {
"line": 41,
"column": 16
},
"end": {
"line": 41,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "accumulatedFps",
"start": 1136,
"end": 1150,
"loc": {
"start": {
"line": 41,
"column": 17
},
"end": {
"line": 41,
"column": 31
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 1151,
"end": 1152,
"loc": {
"start": {
"line": 41,
"column": 32
},
"end": {
"line": 41,
"column": 33
}
}
},
{
"type": {
"label": "num",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": 0,
"start": 1153,
"end": 1154,
"loc": {
"start": {
"line": 41,
"column": 34
},
"end": {
"line": 41,
"column": 35
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1154,
"end": 1155,
"loc": {
"start": {
"line": 41,
"column": 35
},
"end": {
"line": 41,
"column": 36
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 1169,
"end": 1173,
"loc": {
"start": {
"line": 42,
"column": 12
},
"end": {
"line": 42,
"column": 16
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1173,
"end": 1174,
"loc": {
"start": {
"line": 42,
"column": 16
},
"end": {
"line": 42,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "accumulatedFpsLastUpdate",
"start": 1174,
"end": 1198,
"loc": {
"start": {
"line": 42,
"column": 17
},
"end": {
"line": 42,
"column": 41
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 1199,
"end": 1200,
"loc": {
"start": {
"line": 42,
"column": 42
},
"end": {
"line": 42,
"column": 43
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "now",
"start": 1201,
"end": 1204,
"loc": {
"start": {
"line": 42,
"column": 44
},
"end": {
"line": 42,
"column": 47
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1204,
"end": 1205,
"loc": {
"start": {
"line": 42,
"column": 47
},
"end": {
"line": 42,
"column": 48
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1215,
"end": 1216,
"loc": {
"start": {
"line": 43,
"column": 8
},
"end": {
"line": 43,
"column": 9
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1222,
"end": 1223,
"loc": {
"start": {
"line": 44,
"column": 4
},
"end": {
"line": 44,
"column": 5
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Sets the tick rate to N updates per second\r\n * @param {number} rate\r\n ",
"start": 1231,
"end": 1323,
"loc": {
"start": {
"line": 46,
"column": 4
},
"end": {
"line": 49,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "setTickRate",
"start": 1329,
"end": 1340,
"loc": {
"start": {
"line": 50,
"column": 4
},
"end": {
"line": 50,
"column": 15
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1340,
"end": 1341,
"loc": {
"start": {
"line": 50,
"column": 15
},
"end": {
"line": 50,
"column": 16
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "rate",
"start": 1341,
"end": 1345,
"loc": {
"start": {
"line": 50,
"column": 16
},
"end": {
"line": 50,
"column": 20
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1345,
"end": 1346,
"loc": {
"start": {
"line": 50,
"column": 20
},
"end": {
"line": 50,
"column": 21
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1347,
"end": 1348,
"loc": {
"start": {
"line": 50,
"column": 22
},
"end": {
"line": 50,
"column": 23
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "logger",
"start": 1358,
"end": 1364,
"loc": {
"start": {
"line": 51,
"column": 8
},
"end": {
"line": 51,
"column": 14
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1364,
"end": 1365,
"loc": {
"start": {
"line": 51,
"column": 14
},
"end": {
"line": 51,
"column": 15
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "log",
"start": 1365,
"end": 1368,
"loc": {
"start": {
"line": 51,
"column": 15
},
"end": {
"line": 51,
"column": 18
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1368,
"end": 1369,
"loc": {
"start": {
"line": 51,
"column": 18
},
"end": {
"line": 51,
"column": 19
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "Applying tick-rate of",
"start": 1369,
"end": 1392,
"loc": {
"start": {
"line": 51,
"column": 19
},
"end": {
"line": 51,
"column": 42
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1392,
"end": 1393,
"loc": {
"start": {
"line": 51,
"column": 42
},
"end": {
"line": 51,
"column": 43
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "rate",
"start": 1394,
"end": 1398,
"loc": {
"start": {
"line": 51,
"column": 44
},
"end": {
"line": 51,
"column": 48
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1398,
"end": 1399,
"loc": {
"start": {
"line": 51,
"column": 48
},
"end": {
"line": 51,
"column": 49
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1399,
"end": 1400,
"loc": {
"start": {
"line": 51,
"column": 49
},
"end": {
"line": 51,
"column": 50
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 1410,
"end": 1414,
"loc": {
"start": {
"line": 52,
"column": 8
},
"end": {
"line": 52,
"column": 12
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1414,
"end": 1415,
"loc": {
"start": {
"line": 52,
"column": 12
},
"end": {
"line": 52,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "currentTickRate",
"start": 1415,
"end": 1430,
"loc": {
"start": {
"line": 52,
"column": 13
},
"end": {
"line": 52,
"column": 28
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 1431,
"end": 1432,
"loc": {
"start": {
"line": 52,
"column": 29
},
"end": {
"line": 52,
"column": 30
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "rate",
"start": 1433,
"end": 1437,
"loc": {
"start": {
"line": 52,
"column": 31
},
"end": {
"line": 52,
"column": 35
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1437,
"end": 1438,
"loc": {
"start": {
"line": 52,
"column": 35
},
"end": {
"line": 52,
"column": 36
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 1448,
"end": 1452,
"loc": {
"start": {
"line": 53,
"column": 8
},
"end": {
"line": 53,
"column": 12
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1452,
"end": 1453,
"loc": {
"start": {
"line": 53,
"column": 12
},
"end": {
"line": 53,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "deltaMs",
"start": 1453,
"end": 1460,
"loc": {
"start": {
"line": 53,
"column": 13
},
"end": {
"line": 53,
"column": 20
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 1461,
"end": 1462,
"loc": {
"start": {
"line": 53,
"column": 21
},
"end": {
"line": 53,
"column": 22
}
}
},
{
"type": {
"label": "num",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": 1000,
"start": 1463,
"end": 1469,
"loc": {
"start": {
"line": 53,
"column": 23
},
"end": {
"line": 53,
"column": 29
}
}
},
{
"type": {
"label": "/",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 10,
"updateContext": null
},
"value": "/",
"start": 1470,
"end": 1471,
"loc": {
"start": {
"line": 53,
"column": 30
},
"end": {
"line": 53,
"column": 31
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 1472,
"end": 1476,
"loc": {
"start": {
"line": 53,
"column": 32
},
"end": {
"line": 53,
"column": 36
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1476,
"end": 1477,
"loc": {
"start": {
"line": 53,
"column": 36
},
"end": {
"line": 53,
"column": 37
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "currentTickRate",
"start": 1477,
"end": 1492,
"loc": {
"start": {
"line": 53,
"column": 37
},
"end": {
"line": 53,
"column": 52
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1492,
"end": 1493,
"loc": {
"start": {
"line": 53,
"column": 52
},
"end": {
"line": 53,
"column": 53
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 1503,
"end": 1507,
"loc": {
"start": {
"line": 54,
"column": 8
},
"end": {
"line": 54,
"column": 12
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1507,
"end": 1508,
"loc": {
"start": {
"line": 54,
"column": 12
},
"end": {
"line": 54,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "deltaSeconds",
"start": 1508,
"end": 1520,
"loc": {
"start": {
"line": 54,
"column": 13
},
"end": {
"line": 54,
"column": 25
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 1521,
"end": 1522,
"loc": {
"start": {
"line": 54,
"column": 26
},
"end": {
"line": 54,
"column": 27
}
}
},
{
"type": {
"label": "num",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": 1,
"start": 1523,
"end": 1526,
"loc": {
"start": {
"line": 54,
"column": 28
},
"end": {
"line": 54,
"column": 31
}
}
},
{
"type": {
"label": "/",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 10,
"updateContext": null
},
"value": "/",
"start": 1527,
"end": 1528,
"loc": {
"start": {
"line": 54,
"column": 32
},
"end": {
"line": 54,
"column": 33
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 1529,
"end": 1533,
"loc": {
"start": {
"line": 54,
"column": 34
},
"end": {
"line": 54,
"column": 38
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1533,
"end": 1534,
"loc": {
"start": {
"line": 54,
"column": 38
},
"end": {
"line": 54,
"column": 39
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "currentTickRate",
"start": 1534,
"end": 1549,
"loc": {
"start": {
"line": 54,
"column": 39
},
"end": {
"line": 54,
"column": 54
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1549,
"end": 1550,
"loc": {
"start": {
"line": 54,
"column": 54
},
"end": {
"line": 54,
"column": 55
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1556,
"end": 1557,
"loc": {
"start": {
"line": 55,
"column": 4
},
"end": {
"line": 55,
"column": 5
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Increases the tick rate marginally\r\n ",
"start": 1565,
"end": 1620,
"loc": {
"start": {
"line": 57,
"column": 4
},
"end": {
"line": 59,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "increaseTickRate",
"start": 1626,
"end": 1642,
"loc": {
"start": {
"line": 60,
"column": 4
},
"end": {
"line": 60,
"column": 20
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1642,
"end": 1643,
"loc": {
"start": {
"line": 60,
"column": 20
},
"end": {
"line": 60,
"column": 21
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1643,
"end": 1644,
"loc": {
"start": {
"line": 60,
"column": 21
},
"end": {
"line": 60,
"column": 22
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1645,
"end": 1646,
"loc": {
"start": {
"line": 60,
"column": 23
},
"end": {
"line": 60,
"column": 24
}
}
},
{
"type": {
"label": "if",
"keyword": "if",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "if",
"start": 1656,
"end": 1658,
"loc": {
"start": {
"line": 61,
"column": 8
},
"end": {
"line": 61,
"column": 10
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1659,
"end": 1660,
"loc": {
"start": {
"line": 61,
"column": 11
},
"end": {
"line": 61,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "G_IS_DEV",
"start": 1660,
"end": 1668,
"loc": {
"start": {
"line": 61,
"column": 12
},
"end": {
"line": 61,
"column": 20
}
}
},
{
"type": {
"label": "&&",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 2,
"updateContext": null
},
"value": "&&",
"start": 1669,
"end": 1671,
"loc": {
"start": {
"line": 61,
"column": 21
},
"end": {
"line": 61,
"column": 23
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "globalConfig",
"start": 1672,
"end": 1684,
"loc": {
"start": {
"line": 61,
"column": 24
},
"end": {
"line": 61,
"column": 36
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1684,
"end": 1685,
"loc": {
"start": {
"line": 61,
"column": 36
},
"end": {
"line": 61,
"column": 37
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "debug",
"start": 1685,
"end": 1690,
"loc": {
"start": {
"line": 61,
"column": 37
},
"end": {
"line": 61,
"column": 42
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1690,
"end": 1691,
"loc": {
"start": {
"line": 61,
"column": 42
},
"end": {
"line": 61,
"column": 43
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "renderForTrailer",
"start": 1691,
"end": 1707,
"loc": {
"start": {
"line": 61,
"column": 43
},
"end": {
"line": 61,
"column": 59
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1707,
"end": 1708,
"loc": {
"start": {
"line": 61,
"column": 59
},
"end": {
"line": 61,
"column": 60
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1709,
"end": 1710,
"loc": {
"start": {
"line": 61,
"column": 61
},
"end": {
"line": 61,
"column": 62
}
}
},
{
"type": {
"label": "return",
"keyword": "return",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "return",
"start": 1724,
"end": 1730,
"loc": {
"start": {
"line": 62,
"column": 12
},
"end": {
"line": 62,
"column": 18
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1730,
"end": 1731,
"loc": {
"start": {
"line": 62,
"column": 18
},
"end": {
"line": 62,
"column": 19
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1741,
"end": 1742,
"loc": {
"start": {
"line": 63,
"column": 8
},
"end": {
"line": 63,
"column": 9
}
}
},
{
"type": {
"label": "const",
"keyword": "const",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "const",
"start": 1754,
"end": 1759,
"loc": {
"start": {
"line": 65,
"column": 8
},
"end": {
"line": 65,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "desiredFps",
"start": 1760,
"end": 1770,
"loc": {
"start": {
"line": 65,
"column": 14
},
"end": {
"line": 65,
"column": 24
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 1771,
"end": 1772,
"loc": {
"start": {
"line": 65,
"column": 25
},
"end": {
"line": 65,
"column": 26
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 1773,
"end": 1777,
"loc": {
"start": {
"line": 65,
"column": 27
},
"end": {
"line": 65,
"column": 31
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1777,
"end": 1778,
"loc": {
"start": {
"line": 65,
"column": 31
},
"end": {
"line": 65,
"column": 32
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "root",
"start": 1778,
"end": 1782,
"loc": {
"start": {
"line": 65,
"column": 32
},
"end": {
"line": 65,
"column": 36
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1782,
"end": 1783,
"loc": {
"start": {
"line": 65,
"column": 36
},
"end": {
"line": 65,
"column": 37
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "app",
"start": 1783,
"end": 1786,
"loc": {
"start": {
"line": 65,
"column": 37
},
"end": {
"line": 65,
"column": 40
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1786,
"end": 1787,
"loc": {
"start": {
"line": 65,
"column": 40
},
"end": {
"line": 65,
"column": 41
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "settings",
"start": 1787,
"end": 1795,
"loc": {
"start": {
"line": 65,
"column": 41
},
"end": {
"line": 65,
"column": 49
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1795,
"end": 1796,
"loc": {
"start": {
"line": 65,
"column": 49
},
"end": {
"line": 65,
"column": 50
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "getDesiredFps",
"start": 1796,
"end": 1809,
"loc": {
"start": {
"line": 65,
"column": 50
},
"end": {
"line": 65,
"column": 63
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1809,
"end": 1810,
"loc": {
"start": {
"line": 65,
"column": 63
},
"end": {
"line": 65,
"column": 64
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1810,
"end": 1811,
"loc": {
"start": {
"line": 65,
"column": 64
},
"end": {
"line": 65,
"column": 65
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1811,
"end": 1812,
"loc": {
"start": {
"line": 65,
"column": 65
},
"end": {
"line": 65,
"column": 66
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 1822,
"end": 1826,
"loc": {
"start": {
"line": 66,
"column": 8
},
"end": {
"line": 66,
"column": 12
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1826,
"end": 1827,
"loc": {
"start": {
"line": 66,
"column": 12
},
"end": {
"line": 66,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "setTickRate",
"start": 1827,
"end": 1838,
"loc": {
"start": {
"line": 66,
"column": 13
},
"end": {
"line": 66,
"column": 24
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1838,
"end": 1839,
"loc": {
"start": {
"line": 66,
"column": 24
},
"end": {
"line": 66,
"column": 25
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "Math",
"start": 1839,
"end": 1843,
"loc": {
"start": {
"line": 66,
"column": 25
},
"end": {
"line": 66,
"column": 29
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1843,
"end": 1844,
"loc": {
"start": {
"line": 66,
"column": 29
},
"end": {
"line": 66,
"column": 30
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "round",
"start": 1844,
"end": 1849,
"loc": {
"start": {
"line": 66,
"column": 30
},
"end": {
"line": 66,
"column": 35
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1849,
"end": 1850,
"loc": {
"start": {
"line": 66,
"column": 35
},
"end": {
"line": 66,
"column": 36
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "Math",
"start": 1850,
"end": 1854,
"loc": {
"start": {
"line": 66,
"column": 36
},
"end": {
"line": 66,
"column": 40
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1854,
"end": 1855,
"loc": {
"start": {
"line": 66,
"column": 40
},
"end": {
"line": 66,
"column": 41
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "min",
"start": 1855,
"end": 1858,
"loc": {
"start": {
"line": 66,
"column": 41
},
"end": {
"line": 66,
"column": 44
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1858,
"end": 1859,
"loc": {
"start": {
"line": 66,
"column": 44
},
"end": {
"line": 66,
"column": 45
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "desiredFps",
"start": 1859,
"end": 1869,
"loc": {
"start": {
"line": 66,
"column": 45
},
"end": {
"line": 66,
"column": 55
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1869,
"end": 1870,
"loc": {
"start": {
"line": 66,
"column": 55
},
"end": {
"line": 66,
"column": 56
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 1871,
"end": 1875,
"loc": {
"start": {
"line": 66,
"column": 57
},
"end": {
"line": 66,
"column": 61
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1875,
"end": 1876,
"loc": {
"start": {
"line": 66,
"column": 61
},
"end": {
"line": 66,
"column": 62
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "currentTickRate",
"start": 1876,
"end": 1891,
"loc": {
"start": {
"line": 66,
"column": 62
},
"end": {
"line": 66,
"column": 77
}
}
},
{
"type": {
"label": "*",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 10,
"updateContext": null
},
"value": "*",
"start": 1892,
"end": 1893,
"loc": {
"start": {
"line": 66,
"column": 78
},
"end": {
"line": 66,
"column": 79
}
}
},
{
"type": {
"label": "num",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": 1.2,
"start": 1894,
"end": 1897,
"loc": {
"start": {
"line": 66,
"column": 80
},
"end": {
"line": 66,
"column": 83
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1897,
"end": 1898,
"loc": {
"start": {
"line": 66,
"column": 83
},
"end": {
"line": 66,
"column": 84
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1898,
"end": 1899,
"loc": {
"start": {
"line": 66,
"column": 84
},
"end": {
"line": 66,
"column": 85
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1899,
"end": 1900,
"loc": {
"start": {
"line": 66,
"column": 85
},
"end": {
"line": 66,
"column": 86
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1900,
"end": 1901,
"loc": {
"start": {
"line": 66,
"column": 86
},
"end": {
"line": 66,
"column": 87
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1907,
"end": 1908,
"loc": {
"start": {
"line": 67,
"column": 4
},
"end": {
"line": 67,
"column": 5
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Decreases the tick rate marginally\r\n ",
"start": 1916,
"end": 1971,
"loc": {
"start": {
"line": 69,
"column": 4
},
"end": {
"line": 71,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "decreaseTickRate",
"start": 1977,
"end": 1993,
"loc": {
"start": {
"line": 72,
"column": 4
},
"end": {
"line": 72,
"column": 20
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1993,
"end": 1994,
"loc": {
"start": {
"line": 72,
"column": 20
},
"end": {
"line": 72,
"column": 21
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1994,
"end": 1995,
"loc": {
"start": {
"line": 72,
"column": 21
},
"end": {
"line": 72,
"column": 22
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1996,
"end": 1997,
"loc": {
"start": {
"line": 72,
"column": 23
},
"end": {
"line": 72,
"column": 24
}
}
},
{
"type": {
"label": "if",
"keyword": "if",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "if",
"start": 2007,
"end": 2009,
"loc": {
"start": {
"line": 73,
"column": 8
},
"end": {
"line": 73,
"column": 10
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2010,
"end": 2011,
"loc": {
"start": {
"line": 73,
"column": 11
},
"end": {
"line": 73,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "G_IS_DEV",
"start": 2011,
"end": 2019,
"loc": {
"start": {
"line": 73,
"column": 12
},
"end": {
"line": 73,
"column": 20
}
}
},
{
"type": {
"label": "&&",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 2,
"updateContext": null
},
"value": "&&",
"start": 2020,
"end": 2022,
"loc": {
"start": {
"line": 73,
"column": 21
},
"end": {
"line": 73,
"column": 23
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "globalConfig",
"start": 2023,
"end": 2035,
"loc": {
"start": {
"line": 73,
"column": 24
},
"end": {
"line": 73,
"column": 36
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2035,
"end": 2036,
"loc": {
"start": {
"line": 73,
"column": 36
},
"end": {
"line": 73,
"column": 37
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "debug",
"start": 2036,
"end": 2041,
"loc": {
"start": {
"line": 73,
"column": 37
},
"end": {
"line": 73,
"column": 42
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2041,
"end": 2042,
"loc": {
"start": {
"line": 73,
"column": 42
},
"end": {
"line": 73,
"column": 43
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "renderForTrailer",
"start": 2042,
"end": 2058,
"loc": {
"start": {
"line": 73,
"column": 43
},
"end": {
"line": 73,
"column": 59
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2058,
"end": 2059,
"loc": {
"start": {
"line": 73,
"column": 59
},
"end": {
"line": 73,
"column": 60
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2060,
"end": 2061,
"loc": {
"start": {
"line": 73,
"column": 61
},
"end": {
"line": 73,
"column": 62
}
}
},
{
"type": {
"label": "return",
"keyword": "return",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "return",
"start": 2075,
"end": 2081,
"loc": {
"start": {
"line": 74,
"column": 12
},
"end": {
"line": 74,
"column": 18
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2081,
"end": 2082,
"loc": {
"start": {
"line": 74,
"column": 18
},
"end": {
"line": 74,
"column": 19
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2092,
"end": 2093,
"loc": {
"start": {
"line": 75,
"column": 8
},
"end": {
"line": 75,
"column": 9
}
}
},
{
"type": {
"label": "const",
"keyword": "const",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "const",
"start": 2105,
"end": 2110,
"loc": {
"start": {
"line": 77,
"column": 8
},
"end": {
"line": 77,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "desiredFps",
"start": 2111,
"end": 2121,
"loc": {
"start": {
"line": 77,
"column": 14
},
"end": {
"line": 77,
"column": 24
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 2122,
"end": 2123,
"loc": {
"start": {
"line": 77,
"column": 25
},
"end": {
"line": 77,
"column": 26
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 2124,
"end": 2128,
"loc": {
"start": {
"line": 77,
"column": 27
},
"end": {
"line": 77,
"column": 31
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2128,
"end": 2129,
"loc": {
"start": {
"line": 77,
"column": 31
},
"end": {
"line": 77,
"column": 32
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "root",
"start": 2129,
"end": 2133,
"loc": {
"start": {
"line": 77,
"column": 32
},
"end": {
"line": 77,
"column": 36
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2133,
"end": 2134,
"loc": {
"start": {
"line": 77,
"column": 36
},
"end": {
"line": 77,
"column": 37
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "app",
"start": 2134,
"end": 2137,
"loc": {
"start": {
"line": 77,
"column": 37
},
"end": {
"line": 77,
"column": 40
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2137,
"end": 2138,
"loc": {
"start": {
"line": 77,
"column": 40
},
"end": {
"line": 77,
"column": 41
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "settings",
"start": 2138,
"end": 2146,
"loc": {
"start": {
"line": 77,
"column": 41
},
"end": {
"line": 77,
"column": 49
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2146,
"end": 2147,
"loc": {
"start": {
"line": 77,
"column": 49
},
"end": {
"line": 77,
"column": 50
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "getDesiredFps",
"start": 2147,
"end": 2160,
"loc": {
"start": {
"line": 77,
"column": 50
},
"end": {
"line": 77,
"column": 63
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2160,
"end": 2161,
"loc": {
"start": {
"line": 77,
"column": 63
},
"end": {
"line": 77,
"column": 64
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2161,
"end": 2162,
"loc": {
"start": {
"line": 77,
"column": 64
},
"end": {
"line": 77,
"column": 65
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2162,
"end": 2163,
"loc": {
"start": {
"line": 77,
"column": 65
},
"end": {
"line": 77,
"column": 66
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 2173,
"end": 2177,
"loc": {
"start": {
"line": 78,
"column": 8
},
"end": {
"line": 78,
"column": 12
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2177,
"end": 2178,
"loc": {
"start": {
"line": 78,
"column": 12
},
"end": {
"line": 78,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "setTickRate",
"start": 2178,
"end": 2189,
"loc": {
"start": {
"line": 78,
"column": 13
},
"end": {
"line": 78,
"column": 24
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2189,
"end": 2190,
"loc": {
"start": {
"line": 78,
"column": 24
},
"end": {
"line": 78,
"column": 25
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "Math",
"start": 2190,
"end": 2194,
"loc": {
"start": {
"line": 78,
"column": 25
},
"end": {
"line": 78,
"column": 29
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2194,
"end": 2195,
"loc": {
"start": {
"line": 78,
"column": 29
},
"end": {
"line": 78,
"column": 30
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "round",
"start": 2195,
"end": 2200,
"loc": {
"start": {
"line": 78,
"column": 30
},
"end": {
"line": 78,
"column": 35
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2200,
"end": 2201,
"loc": {
"start": {
"line": 78,
"column": 35
},
"end": {
"line": 78,
"column": 36
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "Math",
"start": 2201,
"end": 2205,
"loc": {
"start": {
"line": 78,
"column": 36
},
"end": {
"line": 78,
"column": 40
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2205,
"end": 2206,
"loc": {
"start": {
"line": 78,
"column": 40
},
"end": {
"line": 78,
"column": 41
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "max",
"start": 2206,
"end": 2209,
"loc": {
"start": {
"line": 78,
"column": 41
},
"end": {
"line": 78,
"column": 44
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2209,
"end": 2210,
"loc": {
"start": {
"line": 78,
"column": 44
},
"end": {
"line": 78,
"column": 45
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "desiredFps",
"start": 2210,
"end": 2220,
"loc": {
"start": {
"line": 78,
"column": 45
},
"end": {
"line": 78,
"column": 55
}
}
},
{
"type": {
"label": "/",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 10,
"updateContext": null
},
"value": "/",
"start": 2221,
"end": 2222,
"loc": {
"start": {
"line": 78,
"column": 56
},
"end": {
"line": 78,
"column": 57
}
}
},
{
"type": {
"label": "num",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": 2,
"start": 2223,
"end": 2224,
"loc": {
"start": {
"line": 78,
"column": 58
},
"end": {
"line": 78,
"column": 59
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2224,
"end": 2225,
"loc": {
"start": {
"line": 78,
"column": 59
},
"end": {
"line": 78,
"column": 60
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 2226,
"end": 2230,
"loc": {
"start": {
"line": 78,
"column": 61
},
"end": {
"line": 78,
"column": 65
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2230,
"end": 2231,
"loc": {
"start": {
"line": 78,
"column": 65
},
"end": {
"line": 78,
"column": 66
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "currentTickRate",
"start": 2231,
"end": 2246,
"loc": {
"start": {
"line": 78,
"column": 66
},
"end": {
"line": 78,
"column": 81
}
}
},
{
"type": {
"label": "*",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 10,
"updateContext": null
},
"value": "*",
"start": 2247,
"end": 2248,
"loc": {
"start": {
"line": 78,
"column": 82
},
"end": {
"line": 78,
"column": 83
}
}
},
{
"type": {
"label": "num",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": 0.8,
"start": 2249,
"end": 2252,
"loc": {
"start": {
"line": 78,
"column": 84
},
"end": {
"line": 78,
"column": 87
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2252,
"end": 2253,
"loc": {
"start": {
"line": 78,
"column": 87
},
"end": {
"line": 78,
"column": 88
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2253,
"end": 2254,
"loc": {
"start": {
"line": 78,
"column": 88
},
"end": {
"line": 78,
"column": 89
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2254,
"end": 2255,
"loc": {
"start": {
"line": 78,
"column": 89
},
"end": {
"line": 78,
"column": 90
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2255,
"end": 2256,
"loc": {
"start": {
"line": 78,
"column": 90
},
"end": {
"line": 78,
"column": 91
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2262,
"end": 2263,
"loc": {
"start": {
"line": 79,
"column": 4
},
"end": {
"line": 79,
"column": 5
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Call whenever a tick began\r\n ",
"start": 2271,
"end": 2318,
"loc": {
"start": {
"line": 81,
"column": 4
},
"end": {
"line": 83,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "beginTick",
"start": 2324,
"end": 2333,
"loc": {
"start": {
"line": 84,
"column": 4
},
"end": {
"line": 84,
"column": 13
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2333,
"end": 2334,
"loc": {
"start": {
"line": 84,
"column": 13
},
"end": {
"line": 84,
"column": 14
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2334,
"end": 2335,
"loc": {
"start": {
"line": 84,
"column": 14
},
"end": {
"line": 84,
"column": 15
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2336,
"end": 2337,
"loc": {
"start": {
"line": 84,
"column": 16
},
"end": {
"line": 84,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "assert",
"start": 2347,
"end": 2353,
"loc": {
"start": {
"line": 85,
"column": 8
},
"end": {
"line": 85,
"column": 14
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2353,
"end": 2354,
"loc": {
"start": {
"line": 85,
"column": 14
},
"end": {
"line": 85,
"column": 15
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 2354,
"end": 2358,
"loc": {
"start": {
"line": 85,
"column": 15
},
"end": {
"line": 85,
"column": 19
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2358,
"end": 2359,
"loc": {
"start": {
"line": 85,
"column": 19
},
"end": {
"line": 85,
"column": 20
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "currentTickStart",
"start": 2359,
"end": 2375,
"loc": {
"start": {
"line": 85,
"column": 20
},
"end": {
"line": 85,
"column": 36
}
}
},
{
"type": {
"label": "==/!=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 6,
"updateContext": null
},
"value": "===",
"start": 2376,
"end": 2379,
"loc": {
"start": {
"line": 85,
"column": 37
},
"end": {
"line": 85,
"column": 40
}
}
},
{
"type": {
"label": "null",
"keyword": "null",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "null",
"start": 2380,
"end": 2384,
"loc": {
"start": {
"line": 85,
"column": 41
},
"end": {
"line": 85,
"column": 45
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2384,
"end": 2385,
"loc": {
"start": {
"line": 85,
"column": 45
},
"end": {
"line": 85,
"column": 46
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "BeginTick called twice",
"start": 2386,
"end": 2410,
"loc": {
"start": {
"line": 85,
"column": 47
},
"end": {
"line": 85,
"column": 71
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2410,
"end": 2411,
"loc": {
"start": {
"line": 85,
"column": 71
},
"end": {
"line": 85,
"column": 72
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2411,
"end": 2412,
"loc": {
"start": {
"line": 85,
"column": 72
},
"end": {
"line": 85,
"column": 73
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 2422,
"end": 2426,
"loc": {
"start": {
"line": 86,
"column": 8
},
"end": {
"line": 86,
"column": 12
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2426,
"end": 2427,
"loc": {
"start": {
"line": 86,
"column": 12
},
"end": {
"line": 86,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "currentTickStart",
"start": 2427,
"end": 2443,
"loc": {
"start": {
"line": 86,
"column": 13
},
"end": {
"line": 86,
"column": 29
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 2444,
"end": 2445,
"loc": {
"start": {
"line": 86,
"column": 30
},
"end": {
"line": 86,
"column": 31
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "performance",
"start": 2446,
"end": 2457,
"loc": {
"start": {
"line": 86,
"column": 32
},
"end": {
"line": 86,
"column": 43
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2457,
"end": 2458,
"loc": {
"start": {
"line": 86,
"column": 43
},
"end": {
"line": 86,
"column": 44
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "now",
"start": 2458,
"end": 2461,
"loc": {
"start": {
"line": 86,
"column": 44
},
"end": {
"line": 86,
"column": 47
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2461,
"end": 2462,
"loc": {
"start": {
"line": 86,
"column": 47
},
"end": {
"line": 86,
"column": 48
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2462,
"end": 2463,
"loc": {
"start": {
"line": 86,
"column": 48
},
"end": {
"line": 86,
"column": 49
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2463,
"end": 2464,
"loc": {
"start": {
"line": 86,
"column": 49
},
"end": {
"line": 86,
"column": 50
}
}
},
{
"type": {
"label": "if",
"keyword": "if",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "if",
"start": 2476,
"end": 2478,
"loc": {
"start": {
"line": 88,
"column": 8
},
"end": {
"line": 88,
"column": 10
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2479,
"end": 2480,
"loc": {
"start": {
"line": 88,
"column": 11
},
"end": {
"line": 88,
"column": 12
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 2480,
"end": 2484,
"loc": {
"start": {
"line": 88,
"column": 12
},
"end": {
"line": 88,
"column": 16
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2484,
"end": 2485,
"loc": {
"start": {
"line": 88,
"column": 16
},
"end": {
"line": 88,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "capturedTicks",
"start": 2485,
"end": 2498,
"loc": {
"start": {
"line": 88,
"column": 17
},
"end": {
"line": 88,
"column": 30
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2498,
"end": 2499,
"loc": {
"start": {
"line": 88,
"column": 30
},
"end": {
"line": 88,
"column": 31
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "length",
"start": 2499,
"end": 2505,
"loc": {
"start": {
"line": 88,
"column": 31
},
"end": {
"line": 88,
"column": 37
}
}
},
{
"type": {
"label": "</>",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 7,
"updateContext": null
},
"value": ">",
"start": 2506,
"end": 2507,
"loc": {
"start": {
"line": 88,
"column": 38
},
"end": {
"line": 88,
"column": 39
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 2508,
"end": 2512,
"loc": {
"start": {
"line": 88,
"column": 40
},
"end": {
"line": 88,
"column": 44
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2512,
"end": 2513,
"loc": {
"start": {
"line": 88,
"column": 44
},
"end": {
"line": 88,
"column": 45
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "currentTickRate",
"start": 2513,
"end": 2528,
"loc": {
"start": {
"line": 88,
"column": 45
},
"end": {
"line": 88,
"column": 60
}
}
},
{
"type": {
"label": "*",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 10,
"updateContext": null
},
"value": "*",
"start": 2529,
"end": 2530,
"loc": {
"start": {
"line": 88,
"column": 61
},
"end": {
"line": 88,
"column": 62
}
}
},
{
"type": {
"label": "num",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": 2,
"start": 2531,
"end": 2532,
"loc": {
"start": {
"line": 88,
"column": 63
},
"end": {
"line": 88,
"column": 64
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2532,
"end": 2533,
"loc": {
"start": {
"line": 88,
"column": 64
},
"end": {
"line": 88,
"column": 65
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2534,
"end": 2535,
"loc": {
"start": {
"line": 88,
"column": 66
},
"end": {
"line": 88,
"column": 67
}
}
},
{
"type": "CommentLine",
"value": " Take only a portion of the ticks",
"start": 2549,
"end": 2584,
"loc": {
"start": {
"line": 89,
"column": 12
},
"end": {
"line": 89,
"column": 47
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 2598,
"end": 2602,
"loc": {
"start": {
"line": 90,
"column": 12
},
"end": {
"line": 90,
"column": 16
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2602,
"end": 2603,
"loc": {
"start": {
"line": 90,
"column": 16
},
"end": {
"line": 90,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "capturedTicks",
"start": 2603,
"end": 2616,
"loc": {
"start": {
"line": 90,
"column": 17
},
"end": {
"line": 90,
"column": 30
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2616,
"end": 2617,
"loc": {
"start": {
"line": 90,
"column": 30
},
"end": {
"line": 90,
"column": 31
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "sort",
"start": 2617,
"end": 2621,
"loc": {
"start": {
"line": 90,
"column": 31
},
"end": {
"line": 90,
"column": 35
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2621,
"end": 2622,
"loc": {
"start": {
"line": 90,
"column": 35
},
"end": {
"line": 90,
"column": 36
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2622,
"end": 2623,
"loc": {
"start": {
"line": 90,
"column": 36
},
"end": {
"line": 90,
"column": 37
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2623,
"end": 2624,
"loc": {
"start": {
"line": 90,
"column": 37
},
"end": {
"line": 90,
"column": 38
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 2638,
"end": 2642,
"loc": {
"start": {
"line": 91,
"column": 12
},
"end": {
"line": 91,
"column": 16
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2642,
"end": 2643,
"loc": {
"start": {
"line": 91,
"column": 16
},
"end": {
"line": 91,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "capturedTicks",
"start": 2643,
"end": 2656,
"loc": {
"start": {
"line": 91,
"column": 17
},
"end": {
"line": 91,
"column": 30
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2656,
"end": 2657,
"loc": {
"start": {
"line": 91,
"column": 30
},
"end": {
"line": 91,
"column": 31
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "splice",
"start": 2657,
"end": 2663,
"loc": {
"start": {
"line": 91,
"column": 31
},
"end": {
"line": 91,
"column": 37
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2663,
"end": 2664,
"loc": {
"start": {
"line": 91,
"column": 37
},
"end": {
"line": 91,
"column": 38
}
}
},
{
"type": {
"label": "num",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": 0,
"start": 2664,
"end": 2665,
"loc": {
"start": {
"line": 91,
"column": 38
},
"end": {
"line": 91,
"column": 39
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2665,
"end": 2666,
"loc": {
"start": {
"line": 91,
"column": 39
},
"end": {
"line": 91,
"column": 40
}
}
},
{
"type": {
"label": "num",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": 10,
"start": 2667,
"end": 2669,
"loc": {
"start": {
"line": 91,
"column": 41
},
"end": {
"line": 91,
"column": 43
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2669,
"end": 2670,
"loc": {
"start": {
"line": 91,
"column": 43
},
"end": {
"line": 91,
"column": 44
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2670,
"end": 2671,
"loc": {
"start": {
"line": 91,
"column": 44
},
"end": {
"line": 91,
"column": 45
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 2685,
"end": 2689,
"loc": {
"start": {
"line": 92,
"column": 12
},
"end": {
"line": 92,
"column": 16
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2689,
"end": 2690,
"loc": {
"start": {
"line": 92,
"column": 16
},
"end": {
"line": 92,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "capturedTicks",
"start": 2690,
"end": 2703,
"loc": {
"start": {
"line": 92,
"column": 17
},
"end": {
"line": 92,
"column": 30
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2703,
"end": 2704,
"loc": {
"start": {
"line": 92,
"column": 30
},
"end": {
"line": 92,
"column": 31
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "splice",
"start": 2704,
"end": 2710,
"loc": {
"start": {
"line": 92,
"column": 31
},
"end": {
"line": 92,
"column": 37
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2710,
"end": 2711,
"loc": {
"start": {
"line": 92,
"column": 37
},
"end": {
"line": 92,
"column": 38
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 2711,
"end": 2715,
"loc": {
"start": {
"line": 92,
"column": 38
},
"end": {
"line": 92,
"column": 42
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2715,
"end": 2716,
"loc": {
"start": {
"line": 92,
"column": 42
},
"end": {
"line": 92,
"column": 43
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "capturedTicks",
"start": 2716,
"end": 2729,
"loc": {
"start": {
"line": 92,
"column": 43
},
"end": {
"line": 92,
"column": 56
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2729,
"end": 2730,
"loc": {
"start": {
"line": 92,
"column": 56
},
"end": {
"line": 92,
"column": 57
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "length",
"start": 2730,
"end": 2736,
"loc": {
"start": {
"line": 92,
"column": 57
},
"end": {
"line": 92,
"column": 63
}
}
},
{
"type": {
"label": "+/-",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": true,
"postfix": false,
"binop": 9,
"updateContext": null
},
"value": "-",
"start": 2737,
"end": 2738,
"loc": {
"start": {
"line": 92,
"column": 64
},
"end": {
"line": 92,
"column": 65
}
}
},
{
"type": {
"label": "num",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": 11,
"start": 2739,
"end": 2741,
"loc": {
"start": {
"line": 92,
"column": 66
},
"end": {
"line": 92,
"column": 68
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2741,
"end": 2742,
"loc": {
"start": {
"line": 92,
"column": 68
},
"end": {
"line": 92,
"column": 69
}
}
},
{
"type": {
"label": "num",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": 10,
"start": 2743,
"end": 2745,
"loc": {
"start": {
"line": 92,
"column": 70
},
"end": {
"line": 92,
"column": 72
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2745,
"end": 2746,
"loc": {
"start": {
"line": 92,
"column": 72
},
"end": {
"line": 92,
"column": 73
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2746,
"end": 2747,
"loc": {
"start": {
"line": 92,
"column": 73
},
"end": {
"line": 92,
"column": 74
}
}
},
{
"type": {
"label": "let",
"keyword": "let",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "let",
"start": 2763,
"end": 2766,
"loc": {
"start": {
"line": 94,
"column": 12
},
"end": {
"line": 94,
"column": 15
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "average",
"start": 2767,
"end": 2774,
"loc": {
"start": {
"line": 94,
"column": 16
},
"end": {
"line": 94,
"column": 23
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 2775,
"end": 2776,
"loc": {
"start": {
"line": 94,
"column": 24
},
"end": {
"line": 94,
"column": 25
}
}
},
{
"type": {
"label": "num",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": 0,
"start": 2777,
"end": 2778,
"loc": {
"start": {
"line": 94,
"column": 26
},
"end": {
"line": 94,
"column": 27
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2778,
"end": 2779,
"loc": {
"start": {
"line": 94,
"column": 27
},
"end": {
"line": 94,
"column": 28
}
}
},
{
"type": {
"label": "for",
"keyword": "for",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": true,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "for",
"start": 2793,
"end": 2796,
"loc": {
"start": {
"line": 95,
"column": 12
},
"end": {
"line": 95,
"column": 15
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2797,
"end": 2798,
"loc": {
"start": {
"line": 95,
"column": 16
},
"end": {
"line": 95,
"column": 17
}
}
},
{
"type": {
"label": "let",
"keyword": "let",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "let",
"start": 2798,
"end": 2801,
"loc": {
"start": {
"line": 95,
"column": 17
},
"end": {
"line": 95,
"column": 20
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "i",
"start": 2802,
"end": 2803,
"loc": {
"start": {
"line": 95,
"column": 21
},
"end": {
"line": 95,
"column": 22
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 2804,
"end": 2805,
"loc": {
"start": {
"line": 95,
"column": 23
},
"end": {
"line": 95,
"column": 24
}
}
},
{
"type": {
"label": "num",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": 0,
"start": 2806,
"end": 2807,
"loc": {
"start": {
"line": 95,
"column": 25
},
"end": {
"line": 95,
"column": 26
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2807,
"end": 2808,
"loc": {
"start": {
"line": 95,
"column": 26
},
"end": {
"line": 95,
"column": 27
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "i",
"start": 2809,
"end": 2810,
"loc": {
"start": {
"line": 95,
"column": 28
},
"end": {
"line": 95,
"column": 29
}
}
},
{
"type": {
"label": "</>",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 7,
"updateContext": null
},
"value": "<",
"start": 2811,
"end": 2812,
"loc": {
"start": {
"line": 95,
"column": 30
},
"end": {
"line": 95,
"column": 31
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 2813,
"end": 2817,
"loc": {
"start": {
"line": 95,
"column": 32
},
"end": {
"line": 95,
"column": 36
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2817,
"end": 2818,
"loc": {
"start": {
"line": 95,
"column": 36
},
"end": {
"line": 95,
"column": 37
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "capturedTicks",
"start": 2818,
"end": 2831,
"loc": {
"start": {
"line": 95,
"column": 37
},
"end": {
"line": 95,
"column": 50
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2831,
"end": 2832,
"loc": {
"start": {
"line": 95,
"column": 50
},
"end": {
"line": 95,
"column": 51
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "length",
"start": 2832,
"end": 2838,
"loc": {
"start": {
"line": 95,
"column": 51
},
"end": {
"line": 95,
"column": 57
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2838,
"end": 2839,
"loc": {
"start": {
"line": 95,
"column": 57
},
"end": {
"line": 95,
"column": 58
}
}
},
{
"type": {
"label": "++/--",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": true,
"postfix": true,
"binop": null
},
"value": "++",
"start": 2840,
"end": 2842,
"loc": {
"start": {
"line": 95,
"column": 59
},
"end": {
"line": 95,
"column": 61
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "i",
"start": 2842,
"end": 2843,
"loc": {
"start": {
"line": 95,
"column": 61
},
"end": {
"line": 95,
"column": 62
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2843,
"end": 2844,
"loc": {
"start": {
"line": 95,
"column": 62
},
"end": {
"line": 95,
"column": 63
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2845,
"end": 2846,
"loc": {
"start": {
"line": 95,
"column": 64
},
"end": {
"line": 95,
"column": 65
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "average",
"start": 2864,
"end": 2871,
"loc": {
"start": {
"line": 96,
"column": 16
},
"end": {
"line": 96,
"column": 23
}
}
},
{
"type": {
"label": "_=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "+=",
"start": 2872,
"end": 2874,
"loc": {
"start": {
"line": 96,
"column": 24
},
"end": {
"line": 96,
"column": 26
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 2875,
"end": 2879,
"loc": {
"start": {
"line": 96,
"column": 27
},
"end": {
"line": 96,
"column": 31
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2879,
"end": 2880,
"loc": {
"start": {
"line": 96,
"column": 31
},
"end": {
"line": 96,
"column": 32
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "capturedTicks",
"start": 2880,
"end": 2893,
"loc": {
"start": {
"line": 96,
"column": 32
},
"end": {
"line": 96,
"column": 45
}
}
},
{
"type": {
"label": "[",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2893,
"end": 2894,
"loc": {
"start": {
"line": 96,
"column": 45
},
"end": {
"line": 96,
"column": 46
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "i",
"start": 2894,
"end": 2895,
"loc": {
"start": {
"line": 96,
"column": 46
},
"end": {
"line": 96,
"column": 47
}
}
},
{
"type": {
"label": "]",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2895,
"end": 2896,
"loc": {
"start": {
"line": 96,
"column": 47
},
"end": {
"line": 96,
"column": 48
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2896,
"end": 2897,
"loc": {
"start": {
"line": 96,
"column": 48
},
"end": {
"line": 96,
"column": 49
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2911,
"end": 2912,
"loc": {
"start": {
"line": 97,
"column": 12
},
"end": {
"line": 97,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "average",
"start": 2926,
"end": 2933,
"loc": {
"start": {
"line": 98,
"column": 12
},
"end": {
"line": 98,
"column": 19
}
}
},
{
"type": {
"label": "_=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "/=",
"start": 2934,
"end": 2936,
"loc": {
"start": {
"line": 98,
"column": 20
},
"end": {
"line": 98,
"column": 22
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 2937,
"end": 2941,
"loc": {
"start": {
"line": 98,
"column": 23
},
"end": {
"line": 98,
"column": 27
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2941,
"end": 2942,
"loc": {
"start": {
"line": 98,
"column": 27
},
"end": {
"line": 98,
"column": 28
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "capturedTicks",
"start": 2942,
"end": 2955,
"loc": {
"start": {
"line": 98,
"column": 28
},
"end": {
"line": 98,
"column": 41
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2955,
"end": 2956,
"loc": {
"start": {
"line": 98,
"column": 41
},
"end": {
"line": 98,
"column": 42
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "length",
"start": 2956,
"end": 2962,
"loc": {
"start": {
"line": 98,
"column": 42
},
"end": {
"line": 98,
"column": 48
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2962,
"end": 2963,
"loc": {
"start": {
"line": 98,
"column": 48
},
"end": {
"line": 98,
"column": 49
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 2979,
"end": 2983,
"loc": {
"start": {
"line": 100,
"column": 12
},
"end": {
"line": 100,
"column": 16
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2983,
"end": 2984,
"loc": {
"start": {
"line": 100,
"column": 16
},
"end": {
"line": 100,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "averageTickDuration",
"start": 2984,
"end": 3003,
"loc": {
"start": {
"line": 100,
"column": 17
},
"end": {
"line": 100,
"column": 36
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 3004,
"end": 3005,
"loc": {
"start": {
"line": 100,
"column": 37
},
"end": {
"line": 100,
"column": 38
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "average",
"start": 3006,
"end": 3013,
"loc": {
"start": {
"line": 100,
"column": 39
},
"end": {
"line": 100,
"column": 46
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3013,
"end": 3014,
"loc": {
"start": {
"line": 100,
"column": 46
},
"end": {
"line": 100,
"column": 47
}
}
},
{
"type": {
"label": "const",
"keyword": "const",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "const",
"start": 3030,
"end": 3035,
"loc": {
"start": {
"line": 102,
"column": 12
},
"end": {
"line": 102,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "desiredFps",
"start": 3036,
"end": 3046,
"loc": {
"start": {
"line": 102,
"column": 18
},
"end": {
"line": 102,
"column": 28
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 3047,
"end": 3048,
"loc": {
"start": {
"line": 102,
"column": 29
},
"end": {
"line": 102,
"column": 30
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 3049,
"end": 3053,
"loc": {
"start": {
"line": 102,
"column": 31
},
"end": {
"line": 102,
"column": 35
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3053,
"end": 3054,
"loc": {
"start": {
"line": 102,
"column": 35
},
"end": {
"line": 102,
"column": 36
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "root",
"start": 3054,
"end": 3058,
"loc": {
"start": {
"line": 102,
"column": 36
},
"end": {
"line": 102,
"column": 40
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3058,
"end": 3059,
"loc": {
"start": {
"line": 102,
"column": 40
},
"end": {
"line": 102,
"column": 41
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "app",
"start": 3059,
"end": 3062,
"loc": {
"start": {
"line": 102,
"column": 41
},
"end": {
"line": 102,
"column": 44
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3062,
"end": 3063,
"loc": {
"start": {
"line": 102,
"column": 44
},
"end": {
"line": 102,
"column": 45
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "settings",
"start": 3063,
"end": 3071,
"loc": {
"start": {
"line": 102,
"column": 45
},
"end": {
"line": 102,
"column": 53
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3071,
"end": 3072,
"loc": {
"start": {
"line": 102,
"column": 53
},
"end": {
"line": 102,
"column": 54
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "getDesiredFps",
"start": 3072,
"end": 3085,
"loc": {
"start": {
"line": 102,
"column": 54
},
"end": {
"line": 102,
"column": 67
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3085,
"end": 3086,
"loc": {
"start": {
"line": 102,
"column": 67
},
"end": {
"line": 102,
"column": 68
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3086,
"end": 3087,
"loc": {
"start": {
"line": 102,
"column": 68
},
"end": {
"line": 102,
"column": 69
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3087,
"end": 3088,
"loc": {
"start": {
"line": 102,
"column": 69
},
"end": {
"line": 102,
"column": 70
}
}
},
{
"type": "CommentLine",
"value": " Disabled for now: Dynamicall adjusting tick rate",
"start": 3104,
"end": 3155,
"loc": {
"start": {
"line": 104,
"column": 12
},
"end": {
"line": 104,
"column": 63
}
}
},
{
"type": "CommentLine",
"value": " if (this.averageFps > desiredFps * 0.9) {",
"start": 3169,
"end": 3213,
"loc": {
"start": {
"line": 105,
"column": 12
},
"end": {
"line": 105,
"column": 56
}
}
},
{
"type": "CommentLine",
"value": " // if (average < maxTickDuration) {",
"start": 3227,
"end": 3269,
"loc": {
"start": {
"line": 106,
"column": 12
},
"end": {
"line": 106,
"column": 54
}
}
},
{
"type": "CommentLine",
"value": " this.increaseTickRate();",
"start": 3283,
"end": 3314,
"loc": {
"start": {
"line": 107,
"column": 12
},
"end": {
"line": 107,
"column": 43
}
}
},
{
"type": "CommentLine",
"value": " } else if (this.averageFps < desiredFps * 0.7) {",
"start": 3328,
"end": 3379,
"loc": {
"start": {
"line": 108,
"column": 12
},
"end": {
"line": 108,
"column": 63
}
}
},
{
"type": "CommentLine",
"value": " this.decreaseTickRate();",
"start": 3393,
"end": 3424,
"loc": {
"start": {
"line": 109,
"column": 12
},
"end": {
"line": 109,
"column": 43
}
}
},
{
"type": "CommentLine",
"value": " }",
"start": 3438,
"end": 3442,
"loc": {
"start": {
"line": 110,
"column": 12
},
"end": {
"line": 110,
"column": 16
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 3458,
"end": 3462,
"loc": {
"start": {
"line": 112,
"column": 12
},
"end": {
"line": 112,
"column": 16
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3462,
"end": 3463,
"loc": {
"start": {
"line": 112,
"column": 16
},
"end": {
"line": 112,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "capturedTicks",
"start": 3463,
"end": 3476,
"loc": {
"start": {
"line": 112,
"column": 17
},
"end": {
"line": 112,
"column": 30
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 3477,
"end": 3478,
"loc": {
"start": {
"line": 112,
"column": 31
},
"end": {
"line": 112,
"column": 32
}
}
},
{
"type": {
"label": "[",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3479,
"end": 3480,
"loc": {
"start": {
"line": 112,
"column": 33
},
"end": {
"line": 112,
"column": 34
}
}
},
{
"type": {
"label": "]",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3480,
"end": 3481,
"loc": {
"start": {
"line": 112,
"column": 34
},
"end": {
"line": 112,
"column": 35
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3481,
"end": 3482,
"loc": {
"start": {
"line": 112,
"column": 35
},
"end": {
"line": 112,
"column": 36
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3492,
"end": 3493,
"loc": {
"start": {
"line": 113,
"column": 8
},
"end": {
"line": 113,
"column": 9
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3499,
"end": 3500,
"loc": {
"start": {
"line": 114,
"column": 4
},
"end": {
"line": 114,
"column": 5
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Call whenever a tick ended\r\n ",
"start": 3508,
"end": 3555,
"loc": {
"start": {
"line": 116,
"column": 4
},
"end": {
"line": 118,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "endTick",
"start": 3561,
"end": 3568,
"loc": {
"start": {
"line": 119,
"column": 4
},
"end": {
"line": 119,
"column": 11
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3568,
"end": 3569,
"loc": {
"start": {
"line": 119,
"column": 11
},
"end": {
"line": 119,
"column": 12
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3569,
"end": 3570,
"loc": {
"start": {
"line": 119,
"column": 12
},
"end": {
"line": 119,
"column": 13
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3571,
"end": 3572,
"loc": {
"start": {
"line": 119,
"column": 14
},
"end": {
"line": 119,
"column": 15
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "assert",
"start": 3582,
"end": 3588,
"loc": {
"start": {
"line": 120,
"column": 8
},
"end": {
"line": 120,
"column": 14
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3588,
"end": 3589,
"loc": {
"start": {
"line": 120,
"column": 14
},
"end": {
"line": 120,
"column": 15
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 3589,
"end": 3593,
"loc": {
"start": {
"line": 120,
"column": 15
},
"end": {
"line": 120,
"column": 19
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3593,
"end": 3594,
"loc": {
"start": {
"line": 120,
"column": 19
},
"end": {
"line": 120,
"column": 20
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "currentTickStart",
"start": 3594,
"end": 3610,
"loc": {
"start": {
"line": 120,
"column": 20
},
"end": {
"line": 120,
"column": 36
}
}
},
{
"type": {
"label": "==/!=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 6,
"updateContext": null
},
"value": "!==",
"start": 3611,
"end": 3614,
"loc": {
"start": {
"line": 120,
"column": 37
},
"end": {
"line": 120,
"column": 40
}
}
},
{
"type": {
"label": "null",
"keyword": "null",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "null",
"start": 3615,
"end": 3619,
"loc": {
"start": {
"line": 120,
"column": 41
},
"end": {
"line": 120,
"column": 45
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3619,
"end": 3620,
"loc": {
"start": {
"line": 120,
"column": 45
},
"end": {
"line": 120,
"column": 46
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "EndTick called without BeginTick",
"start": 3621,
"end": 3655,
"loc": {
"start": {
"line": 120,
"column": 47
},
"end": {
"line": 120,
"column": 81
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3655,
"end": 3656,
"loc": {
"start": {
"line": 120,
"column": 81
},
"end": {
"line": 120,
"column": 82
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3656,
"end": 3657,
"loc": {
"start": {
"line": 120,
"column": 82
},
"end": {
"line": 120,
"column": 83
}
}
},
{
"type": {
"label": "const",
"keyword": "const",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "const",
"start": 3667,
"end": 3672,
"loc": {
"start": {
"line": 121,
"column": 8
},
"end": {
"line": 121,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "duration",
"start": 3673,
"end": 3681,
"loc": {
"start": {
"line": 121,
"column": 14
},
"end": {
"line": 121,
"column": 22
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 3682,
"end": 3683,
"loc": {
"start": {
"line": 121,
"column": 23
},
"end": {
"line": 121,
"column": 24
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "performance",
"start": 3684,
"end": 3695,
"loc": {
"start": {
"line": 121,
"column": 25
},
"end": {
"line": 121,
"column": 36
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3695,
"end": 3696,
"loc": {
"start": {
"line": 121,
"column": 36
},
"end": {
"line": 121,
"column": 37
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "now",
"start": 3696,
"end": 3699,
"loc": {
"start": {
"line": 121,
"column": 37
},
"end": {
"line": 121,
"column": 40
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3699,
"end": 3700,
"loc": {
"start": {
"line": 121,
"column": 40
},
"end": {
"line": 121,
"column": 41
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3700,
"end": 3701,
"loc": {
"start": {
"line": 121,
"column": 41
},
"end": {
"line": 121,
"column": 42
}
}
},
{
"type": {
"label": "+/-",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": true,
"postfix": false,
"binop": 9,
"updateContext": null
},
"value": "-",
"start": 3702,
"end": 3703,
"loc": {
"start": {
"line": 121,
"column": 43
},
"end": {
"line": 121,
"column": 44
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 3704,
"end": 3708,
"loc": {
"start": {
"line": 121,
"column": 45
},
"end": {
"line": 121,
"column": 49
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3708,
"end": 3709,
"loc": {
"start": {
"line": 121,
"column": 49
},
"end": {
"line": 121,
"column": 50
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "currentTickStart",
"start": 3709,
"end": 3725,
"loc": {
"start": {
"line": 121,
"column": 50
},
"end": {
"line": 121,
"column": 66
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3725,
"end": 3726,
"loc": {
"start": {
"line": 121,
"column": 66
},
"end": {
"line": 121,
"column": 67
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 3736,
"end": 3740,
"loc": {
"start": {
"line": 122,
"column": 8
},
"end": {
"line": 122,
"column": 12
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3740,
"end": 3741,
"loc": {
"start": {
"line": 122,
"column": 12
},
"end": {
"line": 122,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "capturedTicks",
"start": 3741,
"end": 3754,
"loc": {
"start": {
"line": 122,
"column": 13
},
"end": {
"line": 122,
"column": 26
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3754,
"end": 3755,
"loc": {
"start": {
"line": 122,
"column": 26
},
"end": {
"line": 122,
"column": 27
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "push",
"start": 3755,
"end": 3759,
"loc": {
"start": {
"line": 122,
"column": 27
},
"end": {
"line": 122,
"column": 31
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3759,
"end": 3760,
"loc": {
"start": {
"line": 122,
"column": 31
},
"end": {
"line": 122,
"column": 32
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "duration",
"start": 3760,
"end": 3768,
"loc": {
"start": {
"line": 122,
"column": 32
},
"end": {
"line": 122,
"column": 40
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3768,
"end": 3769,
"loc": {
"start": {
"line": 122,
"column": 40
},
"end": {
"line": 122,
"column": 41
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3769,
"end": 3770,
"loc": {
"start": {
"line": 122,
"column": 41
},
"end": {
"line": 122,
"column": 42
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 3780,
"end": 3784,
"loc": {
"start": {
"line": 123,
"column": 8
},
"end": {
"line": 123,
"column": 12
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3784,
"end": 3785,
"loc": {
"start": {
"line": 123,
"column": 12
},
"end": {
"line": 123,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "currentTickStart",
"start": 3785,
"end": 3801,
"loc": {
"start": {
"line": 123,
"column": 13
},
"end": {
"line": 123,
"column": 29
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 3802,
"end": 3803,
"loc": {
"start": {
"line": 123,
"column": 30
},
"end": {
"line": 123,
"column": 31
}
}
},
{
"type": {
"label": "null",
"keyword": "null",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "null",
"start": 3804,
"end": 3808,
"loc": {
"start": {
"line": 123,
"column": 32
},
"end": {
"line": 123,
"column": 36
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3808,
"end": 3809,
"loc": {
"start": {
"line": 123,
"column": 36
},
"end": {
"line": 123,
"column": 37
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3815,
"end": 3816,
"loc": {
"start": {
"line": 124,
"column": 4
},
"end": {
"line": 124,
"column": 5
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3818,
"end": 3819,
"loc": {
"start": {
"line": 125,
"column": 0
},
"end": {
"line": 125,
"column": 1
}
}
},
{
"type": {
"label": "eof",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3821,
"end": 3821,
"loc": {
"start": {
"line": 126,
"column": 0
},
"end": {
"line": 126,
"column": 0
}
}
}
]
}