Hi
In the documentation is said that timeStamp is transfered as number of milliseconds stored in an int.
So I see a problem here int: 2^32, which is approx 60 days. What will happen if server will be running longer than that?
Greets
Hi
In the documentation is said that timeStamp is transfered as number of milliseconds stored in an int.
So I see a problem here int: 2^32, which is approx 60 days. What will happen if server will be running longer than that?
Greets
Most servers get maintance every week or so, you could have the timeStamp reset then?
Thanks. I guess probably it will be reseted every week, but I just asked theoretically - what will happen.
After reading more about networking I guess anything very bad shouldn’t happen if unity is prepared for that.
You could test what would happen when you over load a int.
int i = 1;
void UpDate()
{
i++
print("Your Number is: " + i);
}
Run that for a min or two and it should max out the int and give you a error or maybe nothing will happen.
You’re pretty optimistic ! Reaching 2^32 with simply i++ ? ![]()
Go for Mathf.Pow, it is faster ![]()
var i : int = 10;
function Update () {
i += Mathf.Pow (2, i);
print ("i=" + i);
}