zapprr / republic-core

An all-in-one, general purpose framework for menu-based FiveM servers. Originally spun off from code created for San Andreas Republic
3 stars 1 forks source link

Server thread hitch making all players to be disconnected #8

Open JackReagan opened 1 month ago

JackReagan commented 1 month ago

I've tried many things to fix this issue, but none have worked. When republic-core is running on my server, I get messages like this on my console: server thread hitch warning: timer interval of 182 milliseconds. As a result, 75% of my players either get disconnected or their games freeze after 2 or 4 of these messages. These issues only occur when the core is started, and while recording the game, I can see some portions of the code running at 185ms. I have no idea how to resolve this. From what I can tell, it's coming from the main client. Let me know if you have the same problem or if you have a solution for this.

SilverFolf commented 1 month ago

Can you going to more detail with what's going on with the script when people crash? Myself and other users haven't experienced this issue.

JackReagan commented 1 month ago

There is nothing more than "hitch warning: timer interval of X milliseconds" in the console. Then, players start to lose connection to the server and get disconnected. They might crash, but no real crash log can be found, so... I know that my friend's localhost has the same hitch warning in the console as what I get on the server, but mine doesn't. Maybe it's related to what the server can handle. Idk

SilverFolf commented 1 month ago

Might be related to the server. I haven't had that issue with Republic-Core, and I'm sure Bozza hasn't even though his is more edited on his server