|
Post by greatchase91 on Oct 8, 2017 19:40:20 GMT
I'm trying to create a wave based survival game but each and every enemy I spawn in using the Invector melee controller drops the games performance by 10 FPS. I'm using a GTX 970, i7 6700, and 16 GB of ram, but after 7 very low poly enemies, my game is running at 10fps. Can anyone help me fix this? I've been trying to fix this for days and I'm losing my mind here.
|
|
|
Post by Legion on Oct 8, 2017 19:57:21 GMT
It has been said that this asset is not AI-centric, but with every major update Invector improves it, they are working on it right now, in fact, try to optime your Voxel Size in the NavMesh Settings.
|
|
|
Post by greatchase91 on Oct 8, 2017 20:25:44 GMT
Thank you for your reply but I have fixed the problem. If anyone else has had the same problem, it was caused by having the enemies detect player distance set too high. I wanted the enemy to detect to always detect the player when they spawn so I set it to 500. I don't know why this would have an effect, but it did, an enormous amount. I changed it to be 50, and now it seems I could have more than 20 enemies without a problem. I'm honestly mad at myself for spending countless hours trying to understand the problem.
|
|
rich
Junior vMember
Posts: 38
|
Post by rich on Oct 9, 2017 9:00:03 GMT
So perhaps setting the detection distance low and then just giving them a waypoint towards the player is a solution. Hopefully it will be more elegant with the AI update.
|
|
|
Post by Invector on Oct 9, 2017 11:24:59 GMT
Yeah the major issue with performance regarding our AI is the sphere sensor, the larger the size, more fps will consume. We already fix this issue for the new AI and also add a option to start with the player as the main target ;)
|
|