multitheftauto / mtasa-blue

Multi Theft Auto is a game engine that incorporates an extendable network play element into a proprietary commercial single-player game.
https://multitheftauto.com
GNU General Public License v3.0
1.35k stars 413 forks source link

Abnormally high CPU usage #2856

Open adlude opened 1 year ago

adlude commented 1 year ago

Describe the bug

There is high CPU utilization by the gta_sa.exe process when MTA is first opened. It takes unreasonably long (about 10 minutes) for the process CPU to reduce to under 10%.

Caveat: If one does not wait for the initial load to dissipate and immediately joins a server, the high CPU usage will never completely decrease; which causes frame lag and performance issues while playing on servers.

Steps to reproduce

  1. Open Task Manager to monitor CPU usage of the gta_sa.exe process. Ideally set Task Manager to be on top of all windows so it is visible while MTA is running.
  2. Launch a fresh instance of MTA.
  3. Remain at the splash screen once MTA opens. Don't do anything.
  4. Monitor CPU usage. It will be high initially, and by 10 minutes, it will reduce.

Version

Client: Multi Theft Auto v1.5.9-release-21463

Additional context

No response

Relevant log output

No response

Security Policy

PlatinMTA commented 1 year ago

I can confirm the high cpu utilization, after 5 minutes~ it went down. Tried joining a busy server and the cpu usage was around ~14%

Then I tried again without waiting, re-joined the same server and my cpu usage was around ~23% until it dropped (after a few minutes). It wasn't noticeable imo.

I'm using a Ryzen 5 5600 btw.

So I'm not sure this is an issue.

navezy commented 1 year ago

I can confirm this. Here's how it goes on my computer:

Screenshot_1843 Screenshot_1844

yurigagarii commented 7 months ago

CPU usage statistics when mta sa is on: on

CPU usage statistics with mta sa turned off: 2

Even though I'm not on any server, when I start the client, GTASA and my CPU get into a huge battle for 10 minutes. When I join a server without waiting for this war to end, the game becomes unplayable and CPU usage never drops to normal levels.

Could you consider updating the launcher? Can't you reduce CPU usage while the game is running or in the launcher menu? This game is a game preferred by players with low system requirements, and in my opinion, its most important purpose is to be at a level that can meet the demands of these players.

yurigagarii commented 7 months ago

CPU usage statistics of mta after 10 minutes Ekran görüntüsü 2023-11-27 102810

Shrub91 commented 4 months ago

This still happens and it's a big issue. The game has to be left open from 15 to 20 minutes in order to calm down the CPU usage.

Proxy-99 commented 3 months ago

same issue here with my cpu high usage like 30% to 40% at the launch of the game then after few minutes went down like to 10% which stabilize my fps from dropping cpu: Intel core i5-9400F

williansilva17k commented 1 month ago

Recently i decided to play this game once again and Ive been experiencing a lot of fps dropping and at some point its almost unplayable, i thought it was something i did but i found this thread/issue here so.. is there a fix or not? PC Specs Screenshot_1