Jump to content

[Fixed] Remove blocking network requests from main thread


Recommended Posts

Posted (edited)

It's just hilarious really that this is even a problem

The problem:
Users whose DNS servers can't resolve rage.mp (or possibly other service domains - couldn't dig too deep into this as I was helping a user, not having the problem myself) during gameplay may face random freezes up to a few seconds long (request timeout period).
It should be noted that this problem was present even on empty local freeroam server without any additional scripts loaded.

The fix:
Don't do whatever is happening in the main thread, like, WHY?

And yeah, for those who experiences random freezes (on otherwise beefy hardware with stable 60-144+ FPS): change your DNS servers to something fast and reliable, like 1.1.1.1 and/or 8.8.8.8

Edited by Vaker
Was fixed as of Sunday
  • Confused 1
Posted (edited)

To reproduce:
- Join a RageMP server normally (everything will be fine)
- Change DNS server in your Windows settings to something that's not supposed to handle DNS requests (it's a bit of an extreme case, usually problem happens with just rage.mp being unresolvable and it freezes once in a few minutes. This change will allow you to get consistent freezes every few seconds.)
- Experience the thing

Edited by Vaker
  • Vaker changed the title to [Fixed] Remove blocking network requests from main thread

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...