Skip to content

Fix vprof crashing in some games#1541

Merged
asherkin merged 1 commit intomasterfrom
bug-1162
Jul 18, 2021
Merged

Fix vprof crashing in some games#1541
asherkin merged 1 commit intomasterfrom
bug-1162

Conversation

@asherkin
Copy link
Member

Some engines are very sensitive to exactly when in a frame vprof is
enabled, the vprof commands use a special command registration method
to defer their execution to the start of the next frame. Instead of
starting/stopping vprof directly ourselves, use the built-in commands
to ensure that the timing is correct and the server does not crash.

Fixes #1162

Some engines are very sensitive to exactly when in a frame vprof is
enabled, the vprof commands use a special command registration method
to defer their execution to the start of the next frame. Instead of
starting/stopping vprof directly ourselves, use the built-in commands
to ensure that the timing is correct and the server does not crash.

Fixes #1162
@asherkin asherkin merged commit f8f5a18 into master Jul 18, 2021
@asherkin asherkin deleted the bug-1162 branch July 18, 2021 18:08
psychonic pushed a commit that referenced this pull request Mar 20, 2022
Some engines are very sensitive to exactly when in a frame vprof is
enabled, the vprof commands use a special command registration method
to defer their execution to the start of the next frame. Instead of
starting/stopping vprof directly ourselves, use the built-in commands
to ensure that the timing is correct and the server does not crash.

Fixes #1162

(cherry picked from commit f8f5a18)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Crash on valve profiler start

2 participants