Mission init takes longer then expected
Issue #8
duplicate
Confirmed, scripts seem to execute much slower. It takes 160 secs to execute a mission from start to "init" state, (I'm spawming IA using scripts) and 560 secs with ZBE cache. No clue so far why, FPS tend to be better and CPS worse when using ZBE, but not such a huge diference, (3/4 FPS and CPS).
Comments (3)
-
-
reporter Moved isServer to a single check in the init.sqf https://bitbucket.org/zorrobyte/zbe_cache/commits/cbf48f4620cf94253f64a532b29f2efe81ecdc2f
Moved zbe_minFrameRate auto config for -1 to main.sqf instead of FSM https://bitbucket.org/zorrobyte/zbe_cache/commits/642d926bf64d868afc484e6bed52c7777b1525b8
-
- changed status to duplicate
Duplicate of #6.
- Log in to comment
Do not know how FSM work exactly but some suggestions.
if (zbe_minFrameRate == -1) then {zbe_minFrameRate = 16;}; in the main SQF, out of the FSM. We are not going to change FPS limiter value in midgame, so just defining it once would make it better in performance.
All the functions in the FSM, out of it and in the mainSQF. again, we want for scripts that tend to be repated to be as little and performance wise as possible. Definid the same functions again and again does not help. (or so I think it does, SQFs work this way)
Does ExecFSM compile the FSM eachtime is called? I know execVM does.