Skip to content

[TF2] CTFStatPanel showing up on freezecam screenshots at high FPS #7477

@CoffeeBeanum

Description

@CoffeeBeanum

CTFStatPanel aka the "On the bright side" panel shows up on freezecam screenshots seemingly due to not hiding in time before engine grabs a screenshot.

It seems like checking IsTakingAFreezecamScreenshot() inside ShouldDraw() is unreliable at high FPS (problem triggers at more than 130 fps on my machine). I assume whatever delay exists before the engine sets IsTakingScreenshot to true and actually takes a screenshot must be fps dependent.

This isn't a problem for CTFFreezePanel - the freezecam UI itself, as it's the only view that hides on screenshot key press event. Hiding CTFStatPanel inside that event provides a simple workaround.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions