Optimized the render panel by making it submit a call for a new paint to be called before sleeping. Thus increasing frames per second.