Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems with new perFrameEventHandlers #147

Closed
PabstMirror opened this issue Sep 2, 2015 · 0 comments · Fixed by #148
Closed

Problems with new perFrameEventHandlers #147

PabstMirror opened this issue Sep 2, 2015 · 0 comments · Fixed by #148

Comments

@PabstMirror
Copy link
Contributor

Problems with add/remove perFrameEH from build 3b87fd0

  • First test (runs again after deleting)
_add = [{
    diag_log text format ["---%1 - Removing %2", diag_tickTime, (_this select 1)];
    [_this select 1] call CBA_fnc_removePerFrameHandler;
}, 0, [7, 6, 5, 4, 3, 2, 1, 0]] call CBA_fnc_addPerFrameHandler;
diag_log text format ["---%1 - Adding %2", diag_tickTime, _add];

yeilds:

---84.091 - Adding 30
---84.093 - Removing 30
---84.108 - Removing 30
  • second test (deletes wrong pfeh)
x_A = [{
    diag_log text format ["---%1 - A Running %2", diag_tickTime, (_this select 1)];
}, 0, [7, 6, 5, 4, 3, 2, 1, 0]] call CBA_fnc_addPerFrameHandler;
diag_log text format ["---%1 - Adding A %2", diag_tickTime, x_A];

x_B = [{
    diag_log text format ["---%1 - B Running %2", diag_tickTime, (_this select 1)];
    diag_log text format ["---%1 - A Removing %2", diag_tickTime, x_A];
    [x_A] call CBA_fnc_removePerFrameHandler;
}, 0, [7, 6, 5, 4, 3, 2, 1, 0]] call CBA_fnc_addPerFrameHandler;
diag_log text format ["---%1 - Adding B %2", diag_tickTime, x_B];

yeilds:

---531.07 - Adding A 29
---531.07 - Adding B 30
---531.072 - A Running 29
---531.072 - B Running 30
---531.072 - A Removing 29
---531.088 - A Running 29
---531.105 - A Running 29
---531.121 - A Running 29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant