[Webkit-unassigned] [Bug 228208] WebGL 2 performance differs in landscape and portrait mode

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jul 23 11:25:19 PDT 2021


https://bugs.webkit.org/show_bug.cgi?id=228208

--- Comment #8 from Jasper St. Pierre <jstpierre at mecheye.net> ---
Do you suspect this is an issue with my content, or a bug on the WebKit side? I do take devicePixelRatio into account when resizing the canvas, and I currently use window.innerWidth / window.innerHeight, which is possibly the wrong measurement.

https://github.com/magcius/noclip.website/blob/3101e0babfa134a854635f16700c4775fc0e5666/src/viewer.ts#L74-L83
https://github.com/magcius/noclip.website/blob/3101e0babfa134a854635f16700c4775fc0e5666/src/main.ts#L474-L476

If there's a better way to handle this, please let me know.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20210723/3790444e/attachment.htm>


More information about the webkit-unassigned mailing list