Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Huge FPS drops #3985

Open
1 task done
Xenius97 opened this issue Jan 28, 2025 · 9 comments · May be fixed by #4013
Open
1 task done

Huge FPS drops #3985

Xenius97 opened this issue Jan 28, 2025 · 9 comments · May be fixed by #4013
Labels
bug Something isn't working

Comments

@Xenius97
Copy link
Contributor

Xenius97 commented Jan 28, 2025

Describe the bug

Something happened because, over the past few weeks, we've noticed huge FPS drops that couldn’t be explained by anything. In the meantime, it seems I figured it out - if too many objects (6-8k) are created, the game simply creates FPS drop "zones" at certain points. In the best case, the FPS just drops for a moment, but in the worst case, the game freezes. I was able to reproduce this on a basic MTA server, so the issue is probably not on our server. It just started 1-2 weeks ago when the last major update came out for MTA (that’s probably where the bug needs to be looked into).

All the objects used in the video are in different dimensions and interiors.
There might be a connection with this bug: #3979

MTA_.San.Andreas.2025-01-28.17-28-09.mp4

https://streamable.com/gg8gm2 < all resources running
https://streamable.com/jso3mm < half of the resources stopped
https://streamable.com/8zlg1o < only safes loaded

Steps to reproduce

Test resource:
freezebug_test.zip

Version

Multi Theft Auto v1.6-release-22916

Security Policy

  • I have read and understood the Security Policy and this issue is not security related.
@Xenius97 Xenius97 added the bug Something isn't working label Jan 28, 2025
@Xenius97
Copy link
Contributor Author

22894 -> same
22780 -> same
22684 -> same
22676 -> same
22388 -> unable to test, server always updates minclientversion to 22676

Conclusion: this is not a new bug or caused by something else

@q8X
Copy link

q8X commented Jan 28, 2025

ig related to #813, i was able to reproduce this in 21244

@naouh
Copy link

naouh commented Feb 8, 2025

Since an update got forced 2 days ago lot of players have the same issue i did some test, sometimes while driving there is huge spikes, also when opening scoreboard there is massive spikes (wasn't happening before) !

https://youtu.be/KGAHbkAq9oE

My specs:

Ryzen 7 9800x3D
32gb ddr5 6000mhz
RTX 4070

@romancenoire
Copy link

Since an update got forced 2 days ago lot of players have the same issue i did some test, sometimes while driving there is huge spikes, also when opening scoreboard there is massive spikes (wasn't happening before) !

https://www.youtube.com/watch?v=KGAHbkAq9oE&feature=youtu.be

My specs:

Ryzen 7 9800x3D 32gb ddr5 6000mhz RTX 4070

Your video is privated and not available. You might put it as "unlisted" and update the link.

@naouh
Copy link

naouh commented Feb 8, 2025

my bad forgot to put to unlisted

@TheNormalnij
Copy link
Member

Profiling results:
Image
CClientStreamSector::AddElements and CClientStreamSector::RemoveElements result massive CPU usage when the game is trying to stream a lot of objects

@naouh
Copy link

naouh commented Feb 8, 2025

I tested several clients and last one working without issues showed in this:
https://youtu.be/KGAHbkAq9oE

is the Multi Theft Auto v1.6-release-22920 once i use 22930 it's broken

Hope it help.

@TheNormalnij
Copy link
Member

TheNormalnij commented Feb 8, 2025

I tested several clients and last one working without issues showed in this: https://youtu.be/KGAHbkAq9oE

is the Multi Theft Auto v1.6-release-22920 once i use 22930 it's broken

Hope it help.

It's a different case. Can be related to #3973 or #3978

It's definitely #3978.

@naouh
Copy link

naouh commented Feb 8, 2025

I tested several clients and last one working without issues showed in this: https://youtu.be/KGAHbkAq9oE
is the Multi Theft Auto v1.6-release-22920 once i use 22930 it's broken
Hope it help.

It's a different case. Can be related to #3973 or #3978

It's definitely #3978.

I created another issue #4010 since it was not related to this topic

@TheNormalnij TheNormalnij linked a pull request Feb 9, 2025 that will close this issue
@TheNormalnij TheNormalnij linked a pull request Feb 11, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants