Search the Community
Showing results for tags 'busy'.
Found 1 result
Hi. Currently I have a problem with one of my scripts. It uses "sleep" in lots of places (mostly short duration ones, from 0.01 to 0.1). The problem is that when I run a script-heavy mission and my FPS falls below 30, the sleep times do not work very well (e.g I'm using sleep 0.01 but it's too long when FPS is low, so it's like the "actual" sleep time is 0.1 or something) How can I account for this engine behavior? I'm personally thinking of something like this but I'm wondering if it's effective? sleep 0.01*(diag_fps/60 min 1) What I mean is that I want the sleep time to be shortened when FPS is lower than 60 otherwise remain the same.