s&
About
The Project
info
About s&box
map
Roadmap
monitoring
Metrics
Engine startup and usage numbers
Updates
newspaper
Latest News
published_with_changes
Changes
Release-by-release changelog
Games
Browse Games
Discover Games
gamejams
live now
Game Jam III
Ends
Fri 25 Sep
Theme
One More Round
The jam is running. Build something, or play the entries.
£
50,000
prizepool
View the jam
Workshop
Playable
sports_esports
Games
Standalone games and gamemodes
Assets
landscape
Maps
view_in_ar
Models
texture
Materials
apparel
Clothing
apps
Everything
Every asset type in one list
Forum
Learn
Documentation
rocket_launch
Getting Started
docs
Documentation
api
API Reference
Resources
school
Tutorials
manage_search
Code Search
input
Log in with Steam
Api
Live Services
BenchmarkSystem
chevron_left
Live Services
class
BenchmarkSystem
Constructors
functions
BenchmarkSystem
Methods
functions
Finish
functions
Sample
functions
SendAsync
functions
SetMetric
functions
Start
BenchmarkSystem
Allows access to stats for the current game. Stats are defined by the game's author and can be used to track anything from player actions to performance metrics. They are how you submit data to leaderboards.
class
Sandbox.Services
.
Sandbox.Engine
build
Constructors
1
BenchmarkSystem
(
)
functions
Methods
5
Finish
(
)
Called to close a benchmark off
Sample
(
)
Should be called in update every frame
SendAsync
(
token
)
Task`1
Finish this benchmark session and send it off to the backend
SetMetric
(
name
,
metric
)
Set a custom metric, like load time, shutdown time etc
Start
(
name
)
Called to start a benchmark
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.