setting surface properties hangs OpenGL sketches #3789

Closed
codeanticode opened this Issue Sep 11, 2015 · 2 comments

Comments

Projects
None yet
1 participant
@codeanticode
Member

codeanticode commented Sep 11, 2015

Calling getSurface().setVisible(), setSize(), etc in setup() with the OpenGL renderers hangs the sketch:

void setup() {
  size(200, 200, P2D);
  getSurface().setVisible(false);
}

@codeanticode codeanticode added the opengl label Sep 11, 2015

@codeanticode codeanticode self-assigned this Sep 11, 2015

@codeanticode

This comment has been minimized.

Show comment
Hide comment
@codeanticode

codeanticode Sep 11, 2015

Member

main reason for the problem was that JOGL run the first couple of frames from the FPSAnimator in the EDT thread, not in the animator's. cd7fd32 fixes it, tested on Mac, Linux and Windows.

Member

codeanticode commented Sep 11, 2015

main reason for the problem was that JOGL run the first couple of frames from the FPSAnimator in the EDT thread, not in the animator's. cd7fd32 fixes it, tested on Mac, Linux and Windows.

@codeanticode codeanticode changed the title from setting surface properties hangs the sketch in OpenGL to setting surface properties hangs OpenGL sketches Sep 11, 2015

@codeanticode

This comment has been minimized.

Show comment
Hide comment
@codeanticode

codeanticode Sep 12, 2015

Member

setLocation() was still hanging the sketch on windows, reason was the use of requestFocus in the animator thread, fixed with 4c0f923

Member

codeanticode commented Sep 12, 2015

setLocation() was still hanging the sketch on windows, reason was the use of requestFocus in the animator thread, fixed with 4c0f923

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment