Originally posted by OfficialCoolJay
i see people do loops like
Loop()
{
for(;
{
blahblah stuff here
wait 0.05;
}
}
and sometimes i see people use a
wait 0.01;
does having a longer wait on these loops prevent crash is my question
or efficient in some way.
Yes, it definitely helps. No wait makes you crash almost immediately and a tiny waiting time might crash later when more threads have been started/the fast running one has been running for a while. I had that happening with an all players mod I did but then switched it to
waittill and
notify constructs and it didn't happen again. Can somebody confirm that
wait 0.01; is invalid since
You must login or register to view this content.? So the smallest waiting time would be
0.05 mathematically but also in practise?