2 loop created for the render : with and without the sleep in the thread, but the one without may be better ...