i know AI will get updated soon so i think now is a good time to say that the fps drop from multiple enemies firing is very high.
if i have just 5 enemies firing i barely get 60fps - blank map on high - if they aren't firing i get around 120fps+
i wrote a quick script to compare and with sound and player damage and checking for the player to be "visible" still being active i still get around 120fps, so this huge drop is most likely just the flash created when firing... is it likely this can be improved?
the 2 scripts used for the resulting screenshots
with muzzle flash
function ai_basic_init(e)
end
function ai_basic_main(e)
CharacterControlArmed(e)
RotateToPlayer(e)
FireWeapon(e)
end
function ai_basic_exit(e)
end
without muzzle flash (sound applied at slot 1 and was playing while screenshot was taken)
function ai_basic_init(e)
end
function ai_basic_main(e)
CharacterControlArmed(e)
RotateToPlayer(e)
if g_Entity[e]['plrvisible'] == 1 then
LoopSound(e,1)
HurtPlayer(e,1)
end
end
function ai_basic_exit(e)
end
i know my test isn't exactly a perfect match but i'm just hoping this might get some investigation when there is time as it would certainly improve performance

life\'s one big game
windows vista ultimate
i5 @3.3ghz, 4gb ram, geforce gtx460, directx 11