Implement double-precision Matrix4x4 and Quaternion classes, Matrix4x4Double and QuaternionDouble
Categories
(Core :: Graphics, enhancement, P2)
Tracking
()
Tracking | Status | |
---|---|---|
firefox68 | --- | fixed |
People
(Reporter: kip, Assigned: kip)
References
(Blocks 1 open bug)
Details
(Whiteboard: gfx-noted)
Attachments
(1 file)
The upcoming WebXR API (Bug 1419190) requires intermediate calculations of real-world space coordinates to have more precision with larger ranges. I expect that double precision matrix and quaternions will also be useful in other graphics and layout work.
It would not be ideal to expand the existing classes to always use double precision, as it would incur a significant performance penalty on certain platforms (eg, Arm). The double-precision variants should be used only when required.
The existing gfx::Matrix4x4 and gfx::Quaternion implementation can be extended with templates to generate both single and double precision variants.
Assignee | ||
Comment 1•5 years ago
|
||
The upcoming WebXR API (Bug 1419190) requires intermediate calculations of real-world space coordinates to have more precision with larger ranges. I expect that double precision matrix and quaternions will also be useful in other graphics and layout work.
It would not be ideal to expand the existing classes to always use double precision, as it would incur a significant performance penalty on certain platforms (eg, Arm). The double-precision variants should be used only when required.
The existing gfx::Matrix4x4 and gfx::Quaternion implementation can be extended with templates to generate both single and double precision variants.
Assignee | ||
Comment 2•5 years ago
|
||
Assignee | ||
Comment 3•5 years ago
|
||
Fixed build failure. Updated try push:
https://treeherder.mozilla.org/#/jobs?repo=try&revision=de2c677eb3277f22a59c4e6b80b3e42625139f95
Updated•5 years ago
|
Pushed by kgilbert@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/ce4539262b1b Implement Matrix4x4Double and QuaternionDouble r=lsalzman
Comment 5•5 years ago
|
||
bugherder |
Description
•