genesis92x / VcomAI-3.0

Vcom AI 3.0
75 stars 39 forks source link

3.3.3 performance fixes #154

Open Spoffy opened 4 years ago

Spoffy commented 4 years ago

In 3.3.3, there's a stutter that causes the framerate to drop to about 10fps every 10 seconds or so.

This is caused by some really expensive calls to 'nearTargets', followed by sorting that list - both of those operations cost many milliseconds.

The changes made here alter how ClstKnwnEnmy works to avoid those issues. There may be minor changes to behaviour as a result, but nothing I've noticed in testing.