I am looking for a solution in which several actors must sit on the same thread. In this thread, I have an OpenGL context, and I want to separate the resource creation code (for example, compiling shaders) from the resource using code (for example, a rendering cycle).
Is it possible? In my opinion, the same problem will exist for GUI based applications. Like Swing, which is single-threaded. Therefore, I believe that there should be a solution.
I currently have the following configuration for rendering a stream:
renderer-dispatcher {
executor = "thread-pool-executor"
type = PinnedDispatcher
thread-pool-executor.allow-core-timeout=off
}
akka.actor.deployment {
/renderer {
dispatcher = renderer-dispatcher
}
}
source
share