2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Attempted to increase performance when paint complicated charts.

This commit is contained in:
23rd
2023-07-14 00:59:10 +03:00
committed by John Preston
parent 73b4621121
commit 367adaa44d
3 changed files with 34 additions and 4 deletions

View File

@@ -64,6 +64,7 @@ private:
[[nodiscard]] Limits finalHeightLimits() const;
[[nodiscard]] float64 detailsProgress(crl::time now) const;
[[nodiscard]] bool animating() const;
[[nodiscard]] bool isFPSSlow() const;
[[nodiscard]] rpl::producer<> heightAnimationStarts() const;
@@ -90,6 +91,11 @@ private:
float _dtHeightSpeed = 0.;
Limits _dtCurrent;
struct {
crl::time lastTickedAt = 0;
bool lastFPSSlow = false;
} _benchmark;
rpl::event_stream<> _heightAnimationStarts;
};