Garmaine Staff asked 1 year ago

Is it possible to run a thread just after render method only once since render loop will call it in every iteration. This is my thread:

    new Thread(new Runnable() {
        float time=0;
        public void run() {
            while(redPos<10) {
                time +=;

I am not very much acquainted with threads so dont know proper way of doing it. Please correct me if i am going wrong