Closed Bug 1575657 Opened 6 years ago Closed 6 years ago

Improve performance for React Asteroid

Categories

(Core Graveyard :: Web Replay, defect, P2)

defect

Tracking

(firefox72 fixed)

RESOLVED FIXED
mozilla72
Tracking Status
firefox72 --- fixed

People

(Reporter: jlast, Assigned: bhackett1024)

Details

Attachments

(1 file)

web replay should be able to record react asteroids with a reasonable performance slow-down.

https://github.com/chriz001/Reacteroids
https://codesandbox.io/s/react-asteroids-v90q1

Priority: -- → P3
Priority: P3 → P2

The problem here is that the recording process is not triggering the creation of any checkpoints, which causes things to get bogged down pretty quickly. The reason why we aren't creating checkpoints is that we only create a checkpoint on one path through PresShell::Paint(), and there are other paths taken when e.g. there are no updates needed to the frame tree (which will be the case when the only thing that changed is some canvas contents, as with this game). Changing Paint() so that a checkpoint is always created causes the game to run much better.

Pushed by bhackett@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/611bf4a5e7a2 Always create record/replay checkpoints when painting, r=mstange.
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla72
Assignee: nobody → bhackett1024
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: