Jump to content
barbolani

Help on debugging FPS drop

Recommended Posts

Hi there!

 

I am experiencing FPS drops on Antistasi MP servers. #Monitor 5 reports stable drops to 4 FPS and such which only get fixed with a restart.

 

It Works with three HCs

 

Okay, I checked everything, no .rpt fails, checked some CPU - intensive functions to be not looped (BIS_fnc_safePos may flood a server if called constantly, I've seen that), checked all while and waituntil commands to have some sleep delay, I diag_logSQFscripts to see what scripts are running and all of them are loops on the sleep line, even with very few AI spawned.

 

So I'm a bit lost on how to debug this.

 

Is there anything else to look for?

 

Thanks in advance!

Share this post


Link to post
Share on other sites
On 31.5.2018 at 4:17 PM, barbolani said:

checked all while and waituntil commands to have some sleep delay

Won't help. Scheduled scripts can only run for 3ms per frame anyway.

You could use profiling build together with https://community.bistudio.com/wiki/diag_captureSlowFrame

you can run it on the server. It will then dump the slow frame to a file that you can open on your client by copy-pasting the content into the UI that https://community.bistudio.com/wiki/diag_captureFrame

opens on clientside.

  • Like 1

Share this post


Link to post
Share on other sites

The BIS_fnc_safePos mentioned above, if massively called, could slow down the framerate because it asks the engine to do a search on nearby objects. However no idea how high the search radius should be to really cause a trouble.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×