Game Development Community

[Fixed]Offline LAN Lockup on MasterServer HeartBeat

by CSMP · in Torque Game Engine · 07/24/2009 (11:57 pm) · 3 replies

I've noticed that when I connect a Client and Server on an Offline LAN game every 2 minutes the game locks up for about 30seconds to a minute due too the MasterServer Heartbeat.

Has anyone else noticed and/or fixed this, I'm almost sure I've seen a thread and fixed this in one of my previous engine versions though I cannot find the post or the version I was using at the time.

OR, If I remove the Heartbeat what would be the consequences of doing so?

#1
07/25/2009 (3:56 am)
The heartbeat is only needed for games over the internet. TGE is sending every 2 minutes (default value) some informations to the masterserver.

When you want to host a game over LAN, simply execute stopHeartBeat(); because you dont need a heartbeat.

Quote:
OR, If I remove the Heartbeat what would be the consequences of doing so?

Nothing, if you want to use LAN.
#2
07/26/2009 (3:40 am)
In that case I could just add an Online Multiplayer option and an Offline (LAN) Multiplayer option that executes the stopHeartBeat function if selected... or something along those lines.

Thanks for the help, This is a much easier option then removing the code as I still plan on using the MasterServer.
#3
07/28/2009 (1:20 pm)
good tip stopHeartBeat();