Home > Back-end >  How to prevent change gear change my program
How to prevent change gear change my program

Time:11-08

The function of this procedure is to start the game client main program files, when after the program is change gear load changes, the game also is accelerated, excuse me each great god, is there any way to prevent the change gear shifting!

CodePudding user response:

Can try the game starts, traversal process, detect whether there are in the process of change gear, so, the game automatically quit,

CodePudding user response:

I have an idea is to use web services to out

Game every 1 second contracted out to a server (web service post/get also line), it is best to long connection.
Then the server judge two intervals.

CodePudding user response:

That if I meet with network latency, how to determine is a network problem, or change gear deceleration?

CodePudding user response:

Local time, the network time (NTP) server, take time to perform a right condition needs a much longer time to operation, such as a few seconds, local time, again the network time (NTP) server take time, compare the difference of two period of time, if greater than a certain threshold, 50 milliseconds, for example, what is it that is

CodePudding user response:

That if the game fixed speed from the start, such as 0.5 times? The threshold is not a start is wrong?

CodePudding user response:

It won't change from the time the server time, this time from the network server to take time, and the Windows date and time set in the Internet is the same time,
  • Related