Creates a new Context
instance.
The onStarted event is raised after the Context is fully initialized and ready for your application logic to start executing.
The onStopped event is raised before the Context starts shutting down, which happens after the last user disconnects.
The list of all actors in the MRE.
The list of all animations.
The list of actors with no parents, i.e. root actors.
The list of all users.
Collect and return a snapshot of the current resource usage of the MRE subsystem. For Node process stats,
use process.resourceUsage()
.
The number of actors in the scene.
The number of visible actors with meshes assigned, not including library actors. For a mobile user with only one MRE running, this should generally be kept below 60, though higher can be done with judicious use of mesh/material reuse and instancing.
The number of loaded material assets.
The number of loaded mesh assets.
The total number of polygons of all loaded meshes.
The total number of vertices of all loaded meshes. Corresponds to GPU memory usage.
The average incoming bandwidth of this app over the last 1/5/30 seconds, in KB/s. This is roughly equivalent to the bandwidth sent by the busiest client over the interval, though does not correlate exactly. Only MRE internal traffic is counted, not general HTTP requests (static file hosting, etc.).
The average outgoing bandwidth of this app over the last 1/5/30 seconds, in KB/s. This is roughly equivalent to the bandwidth sent to the busiest client over the interval, though this does not correlate exactly. Only MRE internal traffic is counted, not general HTTP requests (static file hosting, etc.).
The number of messages sent and received by this app in the last 1/5/30 seconds. A high number might indicate that clients are wasting CPU cycles serializing and deserializing messages.
The number of loaded prefab assets.
The number of loaded sound assets.
The total number of seconds of loaded audio.
The number of loaded texture assets.
[[texturePixelsTotal]] divided by [[textureCount]]. If this value exceeds 1024 * 1024 (roughly 1 000 000), clients may experience frame drops during loading.
The total number of pixels of all loaded textures. Corresponds to GPU memory usage. Should be kept below 6 000 000 for mobile device clients.
Exits this context.
Container for an application session. The Context contains all application state for a session of your application. This includes Actors, Users, Assets, and other state.