3 ms·
In Firefox, I'm getting ~500ms GC pauses every few seconds which make it pretty difficult to play. It works fine in Chromium, though. Edit: Firefox 122.0 on aa
by Retr0id 3y ago
In Firefox, I'm getting ~500ms GC pauses every few seconds which make it pretty difficult to play. It works fine in Chromium, though.
Edit: Firefox 122.0 on aarch64 (fedora asahi)
- Retr0id 3y agoBy the way, here's my simplified/annotated version of the code https://gist.github.com/DavidBuchanan314/13f4c4e8d9573108ff9999be56844022 https://gist.github.com/DavidBuchanan314/13f4c4e8d9573108ff9...
- Retr0id 3y agoLooks like the lag can be fixed by only updating b.innerText once per frame. This seems like a ff bug to be honest, but it appears that rapidly updating the size of innerText is the culprit.
- tomxor 3y agoFrom the source the only thing I can see that would make garbage is b.innerText=o which is set 50 times each frame. But even then it's just one giant text node, not html elements so it's surprising this is causing so much GC in Firefox.
- butz 3y agoLooks like a job for the new profiler.firefox.com
- varenc 3y agoHere's a profile of the freeze being caused the GC if anyone wants to try and debug: https://share.firefox.dev/487vDxG https://share.firefox.dev/487vDxG
- evilpie 3y agoThe profile actually shows the freeze is not caused by normal JS garbage collection, but by cycle collection. So probably something related to DOM nodes.
- aziis98 3y agoActually I'm using Chrome and I also got some random lag spikes