Skip to content

Add Client timing to performance browser#4742

Open
ArranTuna wants to merge 1 commit intomultitheftauto:masterfrom
ArranTuna:clientTiming3
Open

Add Client timing to performance browser#4742
ArranTuna wants to merge 1 commit intomultitheftauto:masterfrom
ArranTuna:clientTiming3

Conversation

@ArranTuna
Copy link
Collaborator

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.

image

Can do like view top 20:

image

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:
image

Should be more like:
image

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

Shows a breakdown of MTA code CPU usage.
@ArranTuna ArranTuna requested a review from a team as a code owner March 6, 2026 19:08
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.

1 participant