URL: https://surma.dev/lab/pid-controller/lab
Browser / Version: Firefox 127.0
Operating System: macOS 14.5
Tested Another Browser: Yes Chrome
Problem type: Something else
Description: RAM usage increases alarmingly quickly
Steps to Reproduce:
I opened the URL and started playing with the PID controller simulator. After about 10 minutes, an OS pop-up told me that all the system RAM had been used up.
Monitoring the RAM usage while the page is running, it seems to be going by about 160 MB/s on my machine. The source code is here:
https://github.com/surma/surma.dev/tree/master/static/lab/pid-controller
It runs createImageBitmap() on the bottom canvas every frame. With an 800x600px canvas updated at 120fps, that works out to about 170MB/s. Coincidence? I think not! I suspect it's something to do with the garbage collector not getting a chance to run, since pausing execution brings the RAM use back down.
The issue doesn't happen in Chrome or Safari.
View the screenshot
Browser Configuration
From webcompat.com with ❤️
URL: https://surma.dev/lab/pid-controller/lab
Browser / Version: Firefox 127.0
Operating System: macOS 14.5
Tested Another Browser: Yes Chrome
Problem type: Something else
Description: RAM usage increases alarmingly quickly
Steps to Reproduce:
I opened the URL and started playing with the PID controller simulator. After about 10 minutes, an OS pop-up told me that all the system RAM had been used up.
Monitoring the RAM usage while the page is running, it seems to be going by about 160 MB/s on my machine. The source code is here:
https://github.com/surma/surma.dev/tree/master/static/lab/pid-controller
It runs createImageBitmap() on the bottom canvas every frame. With an 800x600px canvas updated at 120fps, that works out to about 170MB/s. Coincidence? I think not! I suspect it's something to do with the garbage collector not getting a chance to run, since pausing execution brings the RAM use back down.
The issue doesn't happen in Chrome or Safari.
View the screenshot
Browser Configuration
From webcompat.com with ❤️