Closed
Bug 1138735
Opened 10 years ago
Closed 10 years ago
Fallback to software vsync if CVDisplayLink fails to initialize
Categories
(Core :: Graphics, defect, P2)
Tracking
()
RESOLVED
FIXED
mozilla39
Tracking | Status | |
---|---|---|
firefox39 | --- | fixed |
People
(Reporter: mchang, Assigned: mchang)
References
()
Details
Attachments
(1 file)
1.10 KB,
patch
|
mstange
:
review+
kats
:
feedback+
|
Details | Diff | Splinter Review |
Fallback to software vsync on OS X if CVDisplayLink has an error initializing.
Assignee | ||
Comment 1•10 years ago
|
||
Just a check to make sure we can enable hardware vsync. Otherwise default back to software vsync.
Attachment #8571669 -
Flags: review?(bugmail.mozilla)
Updated•10 years ago
|
Attachment #8571669 -
Flags: review?(mstange)
Attachment #8571669 -
Flags: review?(bugmail.mozilla)
Attachment #8571669 -
Flags: feedback+
Comment 2•10 years ago
|
||
Comment on attachment 8571669 [details] [diff] [review] Fallback to software vsync if hardware vsync is unavailable on OS X Review of attachment 8571669 [details] [diff] [review]: ----------------------------------------------------------------- ::: gfx/thebes/gfxPlatformMac.cpp @@ +555,5 @@ > + NS_WARNING("OS X Vsync source not enabled. Falling back to software vsync.\n"); > + return gfxPlatform::CreateHardwareVsyncSource(); > + } > + > + primaryDisplay.DisableVsync(); What's this for? If it's needed, why weren't we doing this before?
Assignee | ||
Comment 3•10 years ago
|
||
(In reply to Markus Stange [:mstange] from comment #2) > Comment on attachment 8571669 [details] [diff] [review] > Fallback to software vsync if hardware vsync is unavailable on OS X > > Review of attachment 8571669 [details] [diff] [review]: > ----------------------------------------------------------------- > > ::: gfx/thebes/gfxPlatformMac.cpp > @@ +555,5 @@ > > + NS_WARNING("OS X Vsync source not enabled. Falling back to software vsync.\n"); > > + return gfxPlatform::CreateHardwareVsyncSource(); > > + } > > + > > + primaryDisplay.DisableVsync(); > > What's this for? If it's needed, why weren't we doing this before? It's just to make sure that we can use hardware vsync. If we can't for whatever reason, we can still fallback to software vsync. We weren't doing it before because I write bugs :). Sorry! But we do this on b2g as well and Windows [1]. [1] https://dxr.mozilla.org/mozilla-central/source/gfx/thebes/gfxWindowsPlatform.cpp?from=gfxWindowsPlatform.cpp#2116
Comment 4•10 years ago
|
||
Comment on attachment 8571669 [details] [diff] [review] Fallback to software vsync if hardware vsync is unavailable on OS X Makes sense, thanks.
Attachment #8571669 -
Flags: review?(mstange) → review+
Assignee | ||
Comment 5•10 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/57e351862f31
Comment 6•10 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/57e351862f31
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
status-firefox39:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla39
You need to log in
before you can comment on or make changes to this bug.
Description
•