mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1171156. Add logging to OS X vsync timestamps. r=mstange
This commit is contained in:
parent
eb0d3f4973
commit
fd14dd1542
@ -577,7 +577,12 @@ static CVReturn VsyncCallback(CVDisplayLinkRef aDisplayLink,
|
||||
mozilla::TimeStamp previousVsync = display->mPreviousTimestamp;
|
||||
display->mPreviousTimestamp = nextVsync;
|
||||
mozilla::TimeStamp now = TimeStamp::Now();
|
||||
MOZ_ASSERT(nextVsync > previousVsync);
|
||||
if (nextVsync <= previousVsync) {
|
||||
TimeDuration next = nextVsync - now;
|
||||
TimeDuration prev = now - previousVsync;
|
||||
printf_stderr("Next from now: %f, prev from now: %f\n", next.ToMilliseconds(), prev.ToMilliseconds());
|
||||
MOZ_ASSERT(false, "Next vsync less than previous vsync\n");
|
||||
}
|
||||
|
||||
// Bug 1158321 - The VsyncCallback can sometimes execute before the reported
|
||||
// vsync time. In those cases, normalize the timestamp to Now() as sending
|
||||
|
Loading…
Reference in New Issue
Block a user