You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/en-us/reference/engine/classes/Stats.yaml
+62-36Lines changed: 62 additions & 36 deletions
Original file line number
Diff line number
Diff line change
@@ -5,12 +5,12 @@ memory_category: Instances
5
5
summary: |
6
6
Performance metrics for a game.
7
7
description: |
8
-
Stats is a service that provides real-time performance information about the
9
-
current running game instance. Its primary purpose is to provide developers
10
-
with an end point to measure where resources are being consumed, as well as
11
-
how much memory is being consumed overall.
8
+
`Class.Stats` is a service that provides real-time performance information about
9
+
the current running game instance. Its primary purpose is to provide an end point
10
+
to measure where resources are being consumed, as well as how much memory is
11
+
being consumed overall.
12
12
13
-
The service also stores a tree of `Class.StatsItem`, which can have their
13
+
The service also stores a tree of `Class.StatsItem` objects which can have their
14
14
values read by plugins.
15
15
code_samples:
16
16
inherits:
@@ -24,7 +24,7 @@ properties:
24
24
summary: |
25
25
A measurement of how many parts are currently in contact with one another.
26
26
description: |
27
-
ContactsCount describes how many parts are currently in contact with each
27
+
This property describes how many parts are currently in contact with each
28
28
other, such that one of the two parts are being physically simulated, and
29
29
thus can be recognized by the `Class.BasePart:GetTouchingParts()` method.
30
30
code_samples:
@@ -48,10 +48,10 @@ properties:
48
48
In a networked game, this describes roughly how many kilobytes of data are
49
49
being received by the current instance, per second.
50
50
description: |
51
-
In a networked game, DataReceiveKbps describes roughly how many kilobytes
51
+
In a networked game, this property describes roughly how many kilobytes
52
52
of data are being received by the current instance, per second. If from
53
53
the server's perspective, this represents the total amount of data being
54
-
received from the clients connected to the server.If from a client's
54
+
received from the clients connected to the server.If from a client's
55
55
perspective, this represents the total amount of data being received from
56
56
the server.
57
57
code_samples:
@@ -75,10 +75,10 @@ properties:
75
75
In a networked game, this describes roughly how many kilobytes of data are
76
76
being sent by the current instance, per second.
77
77
description: |
78
-
In a networked game, DataSendKbps describes roughly how many kilobytes of
78
+
In a networked game, this property describes roughly how many kilobytes of
79
79
data are being sent by the current instance, per second. If from the
80
80
server's perspective, this represents the total amount of data being sent
81
-
to the clients connected to the server.If from a client's perspective,
81
+
to the clients connected to the server.If from a client's perspective,
82
82
this represents the total amount of data being sent to the server.
83
83
code_samples:
84
84
type: float
@@ -97,8 +97,10 @@ properties:
97
97
capabilities: []
98
98
writeCapabilities: []
99
99
- name: Stats.FrameTime
100
-
summary: ''
101
-
description: ''
100
+
summary: |
101
+
A measurement of how long it takes for the engine to process all tasks required to render a frame.
102
+
description: |
103
+
This property is only available in client scripts and is a measurement of how long it took to render the most-recent frame in seconds. Divide 1 by this value to calculate an FPS value for the frame time. High frame times are indicative of performance problems on the device. Consider using the [MicroProfiler](/studio/microprofiler) to troubleshoot.
102
104
code_samples: []
103
105
type: float
104
106
tags:
@@ -116,8 +118,10 @@ properties:
116
118
capabilities: []
117
119
writeCapabilities: []
118
120
- name: Stats.HeartbeatTime
119
-
summary: ''
120
-
description: ''
121
+
summary: |
122
+
A measurement of the total amount of time it takes for the server to update its Task Scheduler jobs in seconds.
123
+
description: |
124
+
This property is a measurement of the total amount of time it takes for the server to update its Task Scheduler jobs in seconds. If this value is high, examine [server compute](/performance-optimization/identifying#server-compute).
121
125
code_samples: []
122
126
type: float
123
127
tags:
@@ -261,8 +265,10 @@ properties:
261
265
capabilities: []
262
266
writeCapabilities: []
263
267
- name: Stats.PhysicsStepTime
264
-
summary: ''
265
-
description: ''
268
+
summary: |
269
+
A measurement of how long it takes for the physics engine to update its current state.
270
+
description: |
271
+
This property is a measurement of how long it takes for the physics engine to update its current state. If this value is high, it means the game instance is under stress from the physics simulations taking place.
266
272
code_samples: []
267
273
type: float
268
274
tags:
@@ -329,8 +335,10 @@ properties:
329
335
capabilities: []
330
336
writeCapabilities: []
331
337
- name: Stats.RenderCPUFrameTime
332
-
summary: ''
333
-
description: ''
338
+
summary: |
339
+
A measurement of how long it takes for the CPU to process all of its tasks required to render a frame.
340
+
description: |
341
+
This property is a measurement of how long it takes for the CPU to process all of its tasks required to render a frame. A high value can indicate that the CPU is taking longer to render a frame, which can lead to performance issues.
334
342
code_samples: []
335
343
type: float
336
344
tags:
@@ -348,8 +356,10 @@ properties:
348
356
capabilities: []
349
357
writeCapabilities: []
350
358
- name: Stats.RenderGPUFrameTime
351
-
summary: ''
352
-
description: ''
359
+
summary: |
360
+
A measurement of how long it takes for the GPU to process all of its tasks required to render a frame.
361
+
description: |
362
+
This property is a measurement of how long it takes for the GPU to process all of its tasks required to render a frame. A high value can indicate that the GPU is taking longer to render a frame, which can lead to performance issues.
353
363
code_samples: []
354
364
type: float
355
365
tags:
@@ -367,8 +377,10 @@ properties:
367
377
capabilities: []
368
378
writeCapabilities: []
369
379
- name: Stats.SceneDrawcallCount
370
-
summary: ''
371
-
description: ''
380
+
summary: |
381
+
A measurement of the number of draw calls made by the game's current scene.
382
+
description: |
383
+
This property is a measurement of the number of draw calls made by the game's current scene. A draw call is a single rendering operation, such as drawing a mesh. A high draw call count could mean a scene is too complex or unoptimized, which can lead to performance issues.
372
384
code_samples: []
373
385
type: int
374
386
tags:
@@ -386,8 +398,10 @@ properties:
386
398
capabilities: []
387
399
writeCapabilities: []
388
400
- name: Stats.SceneTriangleCount
389
-
summary: ''
390
-
description: ''
401
+
summary: |
402
+
A measurement of the number of triangles rendered by the game's current scene.
403
+
description: |
404
+
This property is a measurement of the number of triangles rendered by the game's current scene. A count of triangles rendered is useful when trying to estimate the complexity and performance of a scene.
391
405
code_samples: []
392
406
type: int
393
407
tags:
@@ -405,8 +419,10 @@ properties:
405
419
capabilities: []
406
420
writeCapabilities: []
407
421
- name: Stats.ShadowsDrawcallCount
408
-
summary: ''
409
-
description: ''
422
+
summary: |
423
+
A measurement of the number of draw calls being made for shadows by the game's current scene.
424
+
description: |
425
+
This property is a measurement of the number of draw calls being made for shadows by the game's current scene. A high count means more shadows are being created by the amount of rendered objects in a scene.
410
426
code_samples: []
411
427
type: int
412
428
tags:
@@ -424,8 +440,10 @@ properties:
424
440
capabilities: []
425
441
writeCapabilities: []
426
442
- name: Stats.ShadowsTriangleCount
427
-
summary: ''
428
-
description: ''
443
+
summary: |
444
+
A measurement of the number of traingles rendered as shadows in the game's current scene.
445
+
description: |
446
+
This property is a measurement of the number of triangles rendered as shadows in the game's current scene. A high count means there are a lot of triangles used to cast shadows, which can hinder performance.
429
447
code_samples: []
430
448
type: int
431
449
tags:
@@ -443,8 +461,10 @@ properties:
443
461
capabilities: []
444
462
writeCapabilities: []
445
463
- name: Stats.UI2DDrawcallCount
446
-
summary: ''
447
-
description: ''
464
+
summary: |
465
+
A measurement of the number of 2D draw calls made for UI elements in the game's current scene.
466
+
description: |
467
+
This property is a measurement of the number of 2D draw calls made for UI elements in the game's current scene. A high count can mean there are a lot of 2D UI elements being used.
448
468
code_samples: []
449
469
type: int
450
470
tags:
@@ -462,8 +482,10 @@ properties:
462
482
capabilities: []
463
483
writeCapabilities: []
464
484
- name: Stats.UI2DTriangleCount
465
-
summary: ''
466
-
description: ''
485
+
summary: |
486
+
A measurement of the number of triangles that are being rendered for 2D UI elements in the game's current scene.
487
+
description: |
488
+
This property is a measurement of the number of triangles that are being rendered for 2D UI elements in the game's current scene. A high count can mean there are many or complex 2D UI elements used, which can contribute to performance loss in regards to rendering.
467
489
code_samples: []
468
490
type: int
469
491
tags:
@@ -481,8 +503,10 @@ properties:
481
503
capabilities: []
482
504
writeCapabilities: []
483
505
- name: Stats.UI3DDrawcallCount
484
-
summary: ''
485
-
description: ''
506
+
summary: |
507
+
A measurement of the number of 3D draw calls made for UI elements in the game's current scene.
508
+
description: |
509
+
This property is a measurement of the number of 3D draw calls made for UI elements in the game's current scene. A high count could indicate a high amount of 3D objects being used within UI, potentially hurting performance; however, it is very unlikely you would see a significant count since UI elements are typically 2D.
486
510
code_samples: []
487
511
type: int
488
512
tags:
@@ -500,8 +524,10 @@ properties:
500
524
capabilities: []
501
525
writeCapabilities: []
502
526
- name: Stats.UI3DTriangleCount
503
-
summary: ''
504
-
description: ''
527
+
summary: |
528
+
A measurement of the number of triangles being rendered for 3D UI elements in the game's current scene.
529
+
description: |
530
+
This property is a measurement of the number of triangles being rendered for 3D UI elements in the game's current scene; however, it is very unlikely you would see a significant count since UI elements are typically 2D.
0 commit comments