Running out of Memory anytime?

Heyho,
i have a question about the this part:

float cycles = Time.time / period;

If someone ist going afk for a while, doesnt we ran out of the float max range anytime? if yes is there a better solution for this? or would this be after years or smth where it rly doesn’t matter :D?

No, it’s not something you have to worry about. You would have to afk for a tremendous amount of time. Time.time is the seconds since the start of the application. It is a float. It is so many seconds, I am unable to calculate the date if I add float.MaxValue to today’s date.

float.MaxValue is something like 340,282,300,000,000,000,000,000,000,000,000,000,000. The sun will likely have burnt out before this becomes an issue

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms