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:
@@ -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;
|
||||
|
||||
};
|
||||
|
Reference in New Issue
Block a user