RequestAnimationFrame based Delta-time mesurment incorrent in mozilla
Categories
(Core :: Graphics, defect, P3)
Tracking
()
People
(Reporter: hexerdomix, Unassigned)
Details
Comment 1•8 years ago
|
||
Updated•7 years ago
|
Comment 2•7 years ago
|
||
I am seeing similar issues and created a very simple straight JS bouncing circle:
https://github.com/dakom/plainloop-test (live demo @ https://dakom.github.io/plainloop-test/)
Watch it for about 30 secs or so and you should see the jank happen a few times.
Here's another demo which has one dependency to get a fixed timestep, roughly same problem: https://github.com/dakom/mainloop-test
On Chrome there's a bit of jank here and there, but on Firefox it's extremely often and jarring... not to be an alarmist, but this is a complete showstopper for game development. With all the effort Mozilla is putting into Rust/Webassembly these days - it would be a shame if we can't use it for game dev or high performance graphics applications that require smooth animation.
From asking people in the community to try it, seems that it's inconsistent - almost everyone sees it but it's not consistently as bad according to anecdotal reports. If you aren't seeing the really bad jank - please try on another machine/monitor/video card. It's definitely there.
My link: https://snipg.github.io/Tests/CorrectDt_NoWorker/
Now it's pretty clean dt, but i use different pc atm.
On old pc it used to lag, go out on sync etc. Same for chrome but only on older laptops/weaker pc.
If you think for game dev then it get's rly ugly when you try for make games playable on mobile too :) But it's getting contantly better.
Chrome still has active bugs with same issues that their devs work on. And they do it pretty fast.
Construct 3 team reported it to chrome again with better examples, you can test thous if you like better one then mine. They In chrome issue report Comment 4.
https://bugs.chromium.org/p/chromium/issues/detail?id=995235
Comment 6•7 years ago
|
||
(In reply to Hexer from comment #4)
Nice demo! Can confirm - it looks awful on Firefox with tons of white gaps
Chrome isn't perfect but has much less...
Comment 7•7 years ago
|
||
(In reply to Hexer from comment #5)
Construct 3 team reported it to chrome again with better examples, you can test thous if you like better one then mine. They In chrome issue report Comment 4.
https://bugs.chromium.org/p/chromium/issues/detail?id=995235
Oh interesting, what actually triggered this for me does ultimately want to involve wasm, workers, and webgl (wip here: https://dakom.github.io/wasm-app-boilerplate/)
Will followup there too...
Updated•4 years ago
|
Description
•