Closed Bug 1755155 Opened 4 years ago Closed 1 year ago

Very low framerate and high memory usage on https://diep.io with accelerated canvas enabled

Categories

(Core :: Graphics: Canvas2D, defect)

Firefox 99
defect

Tracking

()

RESOLVED WORKSFORME
Tracking Status
firefox97 --- affected
firefox98 --- affected
firefox99 --- disabled

People

(Reporter: gregp, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

User Agent: Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:96.0) Gecko/20100101 Firefox/96.0

Steps to reproduce:

  1. Navigate to about:config
  2. Set gfx.canvas.accelerated to true
  3. Visit https://diep.io/

Actual results:

Very low framerate and high memory usage

Expected results:

Good framerate and low memory usage

The Bugbug bot thinks this bug should belong to the 'Core::Graphics' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.

Component: Untriaged → Graphics
Product: Firefox → Core
Component: Graphics → Canvas: 2D

Thanks for the bug report!

Could you please capture a performance profile, by navigating to profiler.firefox.com and installing the addon, then selecting the "Firefox Graphics" settings preset. Please navigate to the affected page, start the profiler and leaving it running for around 10 seconds, then stop the profiler. This should open the profile in a new tab. There should be an option to upload the profile in the top-right corner of the page, please select that then share the URL here. If you need any help with that please let me know.

Blocks: gpu-canvas
Severity: -- → S3
Flags: needinfo?(lsalzman)
Flags: needinfo?(gp3033)
Flags: needinfo?(lsalzman)

Reproduced the issue in Release 97, Beta 98.0b6 and latest Nightly 99.0a1 (2022-02-17) using Ubuntu 20.04.I also tried to reproduce it on Windows 10 in latest Nightly but the tab crashes all the time I access diep.io with gfx.canvas.accelerated set to true.
Here is the Win10 crash report: https://crash-stats.mozilla.org/report/index/4eaee6f2-80a3-4503-9559-75d670220218

Status: UNCONFIRMED → NEW
Ever confirmed: true

(In reply to Jamie Nicol [:jnicol] from comment #2)

Thanks for the bug report!

Could you please capture a performance profile, by navigating to profiler.firefox.com and installing the addon, then selecting the "Firefox Graphics" settings preset. Please navigate to the affected page, start the profiler and leaving it running for around 10 seconds, then stop the profiler. This should open the profile in a new tab. There should be an option to upload the profile in the top-right corner of the page, please select that then share the URL here. If you need any help with that please let me know.

https://share.firefox.dev/3wQRpq7

Flags: needinfo?(gp3033)
Attached image framerate_nightly.png
Attached image framerate_chromium.png

To see the game's reported framerate, press the home key on your keyboard, a textbox will appear, type ren_fps = true, press enter, then press the home key again to dismiss the textbox.

See Also: → 1804005

How does this look now?

Flags: needinfo?(gregp)

Performs well now. Thanks!

Status: NEW → RESOLVED
Closed: 1 year ago
Flags: needinfo?(gregp)
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: