Add Client timing to performance browser#4742
Open
ArranTuna wants to merge 1 commit intomultitheftauto:masterfrom
Open
Add Client timing to performance browser#4742ArranTuna wants to merge 1 commit intomultitheftauto:masterfrom
ArranTuna wants to merge 1 commit intomultitheftauto:masterfrom
Conversation
Shows a breakdown of MTA code CPU usage.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
I used GPT5.3-codex to make a Client timing section like the Server timing section, it shows a breakdown of some of the client CPU usage.
Can do like view top 20:
Motivation
Low / unstable FPS is one of players highest concerns, so I wanted to see a breakdown of CPU usage, unfortunately it can't show exactly where 100% of the CPU time is spent, but maybe this is useful to MTA devs?
Like there's a streamer bug that causes 15% CPU usage:

Should be more like:

All I did was rotate my camera, there's a bug with the streamer the same object is constantly being streamed in and out:
object streamed in userdata: 71E3EED0
object streamed in userdata: 71E3EED0
object streamed in userdata: 71E3EED0
object streamed in userdata: 71E3EED0
object streamed in userdata: 71E3EED0
object streamed in userdata: 71E3EED0
This bug has existed for a very long time, I'm sure I reported it already, but can't find it, will report it again.
Test plan
It's automatically added to web performancebrowser, for IPB "Client timing" must be added to [admin]/ipb/client/gui.lua:8