Skip to content

GLThread with a separate hidden window#3

Open
mantoone wants to merge 1 commit into
DylanCope:mainfrom
mantoone:gl_shader_thread
Open

GLThread with a separate hidden window#3
mantoone wants to merge 1 commit into
DylanCope:mainfrom
mantoone:gl_shader_thread

Conversation

@mantoone
Copy link
Copy Markdown
Contributor

Run GLComputeShaderRunner tasks in a separate thread that has a different opengl context. A new hidden window is used as the context. Removes the need to rely on ApplicationManager window and since the hidden window is not destroyed when switching to terminal only mode, the GLSL shader runs fine even if libgdx app has been exited.

initialise();
}
}
glThread.execute(() -> {
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What happens if the thread is already executing at this point? Or is it blocking?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants