I'm currently working on a learning AI based on the Double DQN algorithm.
As the code is huge and I couldn't find which part of the code is bugged, I'll first described the system. I'm working on a smaller example project to share, but I prefer present my problem first.
I developed a compute shader to manipulate a neural network on the GPU. The learning algorithm run on the CPU side, in a coroutine.
The main loop is used to managed the interface with some button and slider for visual feedback.
Everything is fine when I try the framework on small test project.
My problem appears when I work on my real project. The coroutine seems to run perfectly, I can follow the full loop on the debugger. But, despite the yield method, the interface loop never resume, and the editor freeze.
So, waiting for an example project, is there a known reason for the main loop to not resume after a "yield return null;" statement in a coroutine.
[ps: I'm not fluent in english, sorry for the possible speaking error.]
↧