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

Make sure ecostats toggling run just once to avoid flickering on player camera toggle. #3856

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

saurtron
Copy link
Contributor

@saurtron saurtron commented Oct 17, 2024

Work done

Make sure hideEcostats and showEcostats is only run once to avoid flicker on spectator HUD reInit().

This happens when toggling player view as spec. Also seems to sometimes trigger missing backgrounds for some meter elements on the spectator hud.

The fix fixes the ecostats flicker issue, while possibly fixing the missing backgrounds (at least makes them much more unlikely, not sure where they come from tbh).

Test steps

  • Open a replay or spec game with 2 ally teams.
  • Enable spectator hud
  • Select a player and enable their view.
  • A fast flicker of ecostats can sometimes be noticed.
  • Also sometimes spectator hud will lose background for one of it's areas.

Screenshots:

Since this is a rapidly changing condition screenshot doesn't do much, but the problem can be observed at the following youtube video: https://www.youtube.com/watch?v=k-ZhX2Vu8CQ.

  • At 3:50 the flickering can be observed. (better to watch it at 0.25x to be able to note the flicker)

  • At 4:27 spectator HUD losing background for one of it's meters can be observed (the background actually appears, but dissapears in a few seconds).

Notes:

The missing backgrounds issue can be due to something else but this fix seems to make them much more unlikely. I can reproduce missing backgrounds without the fix, but not with it applied.

The missing background itself seems to be some kind of memory corruption/race condition issue, since it shows but then dissapears in a few seconds after the lua has done it's things... I'm guessing the lua side should not be doing that but not totally sure... maybe further investigation would be warranted on the engine side, not sure tbh, don't want to be alarmist but looks bad.

…cker on reInit().

This happens when toggling player camera as spec and also seems to sometimes trigger missing backgrounds for some meter elements on the spectator hud.
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 this pull request may close these issues.

1 participant