Closed Bug 727939 Opened 14 years ago Closed 14 years ago

Avoid double painting during runfield

Categories

(Core :: Graphics, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: jrmuizel, Assigned: jrmuizel)

References

(Blocks 2 open bugs)

Details

(Keywords: perf, Whiteboard: mwc-demo)

Attachments

(1 file)

We currently draw alot more during runfield than we need to. We have some ideas of how to fix this.
Whiteboard: mwc-demo
Blocks: 727838
Blocks: 728251
Blocks: 728249
Assignee: nobody → jmuizelaar
Keywords: perf
In the new version of the demo, I scale the Canvas. This impacts the performance, right? I use <meta viewport="width=device-width"> and the <canvas> is scaled (width: 100%). I could also use <meta viewport="width=thesizeofthecanvas"> but I guess that would do the same thing.
It looks like endTransaction is only called by endDrawing on the gecko thread and only on VirtualLayers. We don't need the extra requestRender call because we've already done the rendering.
Attachment #598583 - Flags: review?(bgirard)
Comment on attachment 598583 [details] [diff] [review] Don't request render in endTransaction Nice find!
Attachment #598583 - Flags: review?(bgirard) → review+
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Blocks: 728622
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: