Terasology / Behaviors

Store for an assortment of behaviors that can be applied to creatures
https://terasology.github.io/Behaviors
6 stars 18 forks source link

Performance issue with FindNearbyPlayers #19

Open Cervator opened 5 years ago

Cervator commented 5 years ago

While testing MetalRenegades which uses FindNearbyPlayers for multiple Gooeys its performance monitor category (F3 then F4) would often be at the top of the time eaters list, at times substantially so to cause quite a bit of lag.

The Gooeys themselves were in at times odd states. I got close to a red one (runs after you and tries to damage you) and while nearby it tracked me fine. At a longer distance where it might lose me it started sort of vibrating in place akin to how the deer can get really vibraty. Found a green one in a market place that worked similarly.

Oddly on top of that in two places I found them flying. Which I'm pretty sure isn't a skill we've taught them! I'm not sure if it is a quirk, it seemed like they were just floating up, possible then correcting and warping back to the ground.

Terasology-190713214837-1459x811

Terasology-190713214823-1459x811

To replicate groovyw recurse MetalRenegades and start a new game with the Metal Renegades template. Find a city and some Gooeys, keep an eye on the performance monitor and their behavior in-game.

jdrueckert commented 4 years ago

@askneller was this issue fully fixed by your PR? @AndyTechGuy you did some tweaks for Behaviors in your project, too, right? Any idea about the current status here?

askneller commented 4 years ago

@jdrueckert I'm not sure if it was fully fixed, but I noted a large change on my system. I believe others didn't get as large a change on their systems (I can't remember who sorry). Maybe others can weigh in on whether they still see issues with it.