Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
sketch window briefly appears on the top left corner when using OpenGL renderers #3308
referenced this issue
May 20, 2015
@benfry this could be solved in the case of the GL renderer if surface.startThread() is called at the end runSketchEDT(), and only then making the window visible. In this way, it is never visible while it has its initial default location. However, for that to work I had to comment out the while (sketch.defaultSize && !sketch.finished) loop, which I'm not entirely sure if it is still needed after all the changes in the renderer's architecture. Didn't seem to have an effect on the GL renderers.
At the moment, that loop exists as a convenience to not show a window until
In Java2D it's working (in a10), but how can we get around these issues for OpenGL? Even if we need to show the frame for GL so that it has a rendering surface, we shouldn't cripple Java2D by making it open a blank window.