Skip to content

Commit 6e2eacd

Browse files
authored
Merge branch 'main' into patch-1
2 parents 8dc0938 + 6ebaac6 commit 6e2eacd

File tree

1 file changed

+62
-36
lines changed

1 file changed

+62
-36
lines changed

content/en-us/reference/engine/classes/Stats.yaml

Lines changed: 62 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ memory_category: Instances
55
summary: |
66
Performance metrics for a game.
77
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.
1212
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
1414
values read by plugins.
1515
code_samples:
1616
inherits:
@@ -24,7 +24,7 @@ properties:
2424
summary: |
2525
A measurement of how many parts are currently in contact with one another.
2626
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
2828
other, such that one of the two parts are being physically simulated, and
2929
thus can be recognized by the `Class.BasePart:GetTouchingParts()` method.
3030
code_samples:
@@ -48,10 +48,10 @@ properties:
4848
In a networked game, this describes roughly how many kilobytes of data are
4949
being received by the current instance, per second.
5050
description: |
51-
In a networked game, DataReceiveKbps describes roughly how many kilobytes
51+
In a networked game, this property describes roughly how many kilobytes
5252
of data are being received by the current instance, per second. If from
5353
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
5555
perspective, this represents the total amount of data being received from
5656
the server.
5757
code_samples:
@@ -75,10 +75,10 @@ properties:
7575
In a networked game, this describes roughly how many kilobytes of data are
7676
being sent by the current instance, per second.
7777
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
7979
data are being sent by the current instance, per second. If from the
8080
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,
8282
this represents the total amount of data being sent to the server.
8383
code_samples:
8484
type: float
@@ -97,8 +97,10 @@ properties:
9797
capabilities: []
9898
writeCapabilities: []
9999
- 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.
102104
code_samples: []
103105
type: float
104106
tags:
@@ -116,8 +118,10 @@ properties:
116118
capabilities: []
117119
writeCapabilities: []
118120
- 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).
121125
code_samples: []
122126
type: float
123127
tags:
@@ -261,8 +265,10 @@ properties:
261265
capabilities: []
262266
writeCapabilities: []
263267
- 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.
266272
code_samples: []
267273
type: float
268274
tags:
@@ -329,8 +335,10 @@ properties:
329335
capabilities: []
330336
writeCapabilities: []
331337
- 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.
334342
code_samples: []
335343
type: float
336344
tags:
@@ -348,8 +356,10 @@ properties:
348356
capabilities: []
349357
writeCapabilities: []
350358
- 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.
353363
code_samples: []
354364
type: float
355365
tags:
@@ -367,8 +377,10 @@ properties:
367377
capabilities: []
368378
writeCapabilities: []
369379
- 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.
372384
code_samples: []
373385
type: int
374386
tags:
@@ -386,8 +398,10 @@ properties:
386398
capabilities: []
387399
writeCapabilities: []
388400
- 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.
391405
code_samples: []
392406
type: int
393407
tags:
@@ -405,8 +419,10 @@ properties:
405419
capabilities: []
406420
writeCapabilities: []
407421
- 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.
410426
code_samples: []
411427
type: int
412428
tags:
@@ -424,8 +440,10 @@ properties:
424440
capabilities: []
425441
writeCapabilities: []
426442
- 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.
429447
code_samples: []
430448
type: int
431449
tags:
@@ -443,8 +461,10 @@ properties:
443461
capabilities: []
444462
writeCapabilities: []
445463
- 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.
448468
code_samples: []
449469
type: int
450470
tags:
@@ -462,8 +482,10 @@ properties:
462482
capabilities: []
463483
writeCapabilities: []
464484
- 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.
467489
code_samples: []
468490
type: int
469491
tags:
@@ -481,8 +503,10 @@ properties:
481503
capabilities: []
482504
writeCapabilities: []
483505
- 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.
486510
code_samples: []
487511
type: int
488512
tags:
@@ -500,8 +524,10 @@ properties:
500524
capabilities: []
501525
writeCapabilities: []
502526
- 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.
505531
code_samples: []
506532
type: int
507533
tags:

0 commit comments

Comments
 (0)