Question about timings

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

uhdwo

Member
May 18, 2020
20
0
0
30
So my server is running good with 300-400+ daily players on a skyblock

I taking timings and always wanna optimize better. I see in the timings it says "Minecraft::Minecraft Scheduler (SELF)" it takes like 10-15% if not more sometimes

What is that and what can cause it?
plz let me know if you need whole timing, plugins and etc​
 
Multithreading?
[doublepost=1590871542,1590870561][/doublepost]Because using sleep method on server main thread will keep it down and it will dump so yeh

Java:
public class UrClass extends Thread {
    @Override
    public void run() {
        int i = 0;
        while (i <= 10) {
            System.out.println(i);
            i++;
            try{
                sleep(1000);
            }catch (InterruptedException e){
                System.out.println("Second thread is down");
            }
        }
        System.out.println("Thread finished please keep these two lines in the end or remove them");
      
    }

Starting ur thread
Java:
        UrClass testing = new UrClass();
        testing.start();