trigonoparty icon indicating copy to clipboard operation
trigonoparty copied to clipboard

Weird thing I noticed with FPS

Open miclill opened this issue 7 years ago • 3 comments

On Firefox 62 FPS seem to be stuck at 10. Even when I drag this never changes. On Chromium it varies wildly and gives me about 60.

By the way, I really like the code. Clean and no unnecessary libraries.

miclill avatar Oct 06 '18 17:10 miclill

Thanks a lot, happy to see you like the code! Drowning in libraries really make me sad nowadays.

About FPS, its really weird. Which OS do you encounter this behavior? I tried in macOS with a couple of browsers, and their FPS rates similar around 60. I'll check this in windows.

BTW; i've disabled drawing FPS when dragging in progress, because its caused miscalculations.

ramesaliyev avatar Oct 06 '18 18:10 ramesaliyev

The OS is debian linux.

miclill avatar Dec 18 '21 15:12 miclill

Another debian / firefox (95) user here.

On a large screen 2560x1440, I don't have any issues. Performance recorder shows ~45 fps. There are two possible reasons for a low FPS I believe.

First reason might be that, simply FPS counter embedded to the library might be buggy. FPS counting is an extra overhead and in some cases, like doing it on JS, it might not be as accurate as it should.

Second reason might be that your browser might not be getting the full GPU support that it needs. This may be result of misbehaving GPU drivers or Firefox being too old (if you are still using 62 after 3 years 😅 ).

My primary suggestion would be to check for the performance recorder's stats. Try opening the performance tab recording your actions for a small time. Here is how it looks for me.

image

sinanislekdemir avatar Dec 18 '21 18:12 sinanislekdemir