Hi, I'm making plugin that sends particles every 0.01 seconds. but their task supports 0.05 so i want to use usleep method so i can use my task, but when i use usleep, server stucked. how can i process every microtime? sry my bad eng.
i highly doubt you want to create 100 particles per second, because that's faster than the main thread runs(I think), and it will be bad for both server and client performance.
you cant usleep means you will be stopping the server so it does what it's meant to do you could have multiple task running in 1 tick