Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Evolution

Create creatures and let them evolve to see how they master various tasks. · By Keiwan

gpu acceleration?

A topic by infotron created Apr 29, 2018 Views: 987 Replies: 3
Viewing posts 1 to 3

could it be possible to add gpu acceleration to the learning process? right now if I have more than say 50 creatures at once the simulation lags terribly. is there a way to make it at least run smoother? 

Developer

Yeah, that's definitely one of the first things I want to try in the future when I find the time. I'm interested to see how much I can increase the performance by offloading all of the network calculations from the CPU to the GPU, since those calculations are all naturally parallelizable anyway.

Currently the only option you have if you want the benefits of a larger population size and you're okay with trading in the time it takes to simulate a single generation, is to simulate your generation in batches that your CPU can handle at once.

I sincerely hope you get some time to make this happen :)

Developer(+1)

Unfortunately, it turns out that in the vast majority of cases the noticeable performance drops happen because of Unity's physics system, which is single-threaded on the CPU and out of my control.