uhhh… yeah. it happened again. I lost track of time 😞. I promise this devlog is the last time I have one with crazy time on it. I wanted to attach a video of the agent actually playing the game. I really, really, really wanted results this time. my bad!!!
However, I am seeing results again. The one MAJOR problem I had with this devlog wasn’t getting this dumb AI to learn, it was keeping my PC from exploding. During training, it would start at ~30 actions per second that the agent would take, and overnight, somehow that would decrease to ~2 actions per second! And Assetto Corsa would just be running at 2 FPS!!!!!! You do NOT want to know how much damn time i spent trying to find a memory leak that wasn’t there.
The solution, surprisingly, is to INCREASE GPU usage??? Yeah, I don’t really know how that works, but previously GPU utilization would steadily trickle down until it hit a plateau of ~20%. So what I did was, once the replay buffer was big enough, the GPU would keep training on that without waiting for new data from the CPU (again, multiprocessing junk holding up my project). There were also minor enhancements along the way, but I got my computer to stop dying every time I try to train.
This training session. I swear, I’m not ending this one early to fix a stupid bug.
THIS SESSION IS THE ONE!!!!!
(i have trained this thing for a total of 480 hours. pleaseeeeee ft can we have electricity grants 🥺)
Log in to leave a comment