Closed Bug 1557746 Opened 6 years ago Closed 6 years ago

AV1 playback spends a lot of decode time managing shared memory on Mac

Categories

(Core :: Audio/Video: Playback, task, P3)

task

Tracking

()

RESOLVED DUPLICATE of bug 1539043

People

(Reporter: jrmuizel, Unassigned)

References

(Blocks 1 open bug)

Details

I see 14% of the time in RDD process in BuildSurfaceDescriptorBuffer and ShmemDestroyed while playing 720p60 video.
It looks like we're constantly allocating and deallocating new shared memory for every frame so we're probably hitting zero-fill-on-demand page faults as we copy the frame into the shared memory.

Yeah, I confirmed that at least half of the memcpy time in BuildSurfaceDescriptorBuffer is spent pagefaulting.

Sounds like a buffer recycler is in order here.

Blocks: RDD
Priority: -- → P3
Type: defect → task
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.