I'm looking for a solution, where several actors should sit on single thread. In this thread I have OpenGL context and I want to separate resource creation code (e.g. shader compilation) from resource using code (e.g. rendering loop).
Is this possible? Same issue will exists for GUI-based applications, I suppose. Like Swing, which is single-threaded. So, I believe there should be a solution.
Currently I have following configuration for rendering thread:
renderer-dispatcher {
executor = "thread-pool-executor"
type = PinnedDispatcher
thread-pool-executor.allow-core-timeout=off
}
akka.actor.deployment {
/renderer {
dispatcher = renderer-dispatcher
}
}