We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d008e8d commit eaf554fCopy full SHA for eaf554f
editor/src/messages/input_mapper/utility_types/misc.rs
@@ -139,7 +139,8 @@ impl FrameTimeInfo {
139
}
140
141
pub fn advance_timestamp(&mut self, next_timestamp: Duration) {
142
- debug_assert!(next_timestamp >= self.timestamp);
+ // Guard against non-monotonic timestamps from the browser (Keavon observed this once in Chrome)
143
+ let next_timestamp = next_timestamp.max(self.timestamp);
144
145
self.prev_timestamp = Some(self.timestamp);
146
self.timestamp = next_timestamp;
0 commit comments