I have to say, npc vs npc make significant impact on frame rate.
Global damage zone require every npc run though the code per frame to check if it is hit, which is not good when there are too many enemies on the screen.
I am still trying to optimize it, haven't found a better way.
However, it doesn't affect current gameplay, because it needs at least 20+ enemies all attacking on screen to see 10-20 frame drop.
But if you got a crappy cpu it is going to be worse... sadly, I am sorry.
---------------------
我不得不说,npc对战对帧率影响很大。
全局伤害要求每个NPC每帧都要运行代码来检查它是否被击中,当屏幕上有太多敌人时,就可能会卡。
还在试着优化,但还没找到更好的方法。
不过,目前还不会影响游戏本身,因为至少需要20个以上的敌人都在屏幕上大乱斗攻击才能看到大概10到20帧下降。
但如果你有一个很烂的CPU,情况会更糟……那就非常遗憾了。
RoVerehr
2023-08-05 08:54:11 +0000 UTCDark Nite Sunset
2023-08-05 08:47:00 +0000 UTCRoVerehr
2023-08-04 10:25:42 +0000 UTCNamira
2023-08-04 10:22:22 +0000 UTC