Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×
Sign in to follow this  
gippo

Swivel target multiplayer issues

Recommended Posts

Just found out this issue. I started investigating because one of our missions showed very low FPS server side.

Turns out the swivel target objects: (Land_Target_Swivel_01_F, Target_Swivel_01_ground_F, Target_Swivel_01_left_F, Target_Swivel_01_right_F) execute a script which handles the animation.

However, this script is getting executed everywhere. Server side, client side.

So what happens is that all the clients and the server is trying to do the animation. Causing the animation to be totally broken and very likely some performance issues as well. 

Not sure how the animate command works, how is it synced, etc, but I can imagine all the players plus the server is calling that command continuously can cause some troubles.
At least on our server (60 players + HC) it showed a noticeable difference (edit: on ASM), when I spawned 20 of these objects VS when I spawned them with the script disabled on clients (_obj setvariable ["BIS_exitScript",true]).


Proposed very simple solution:

if !(isserver) exitwith {}

Also, would be awesome if the script would actually exit if the object actually gets deleted.


This is very similar issue to the case of the Wreck_Heli_Attack_01, when it spawns visual/audio effects on server+HC as well, which should be only run on machines which have interface. (already reported on feedback tracker)
 

Share this post


Link to post
Share on other sites
Sign in to follow this  

×