GL2GPU: Accelerating WebGL Applications via Dynamic API Translation to WebGPU
Yudong Han, Weichen Bi, Ruibo An, Deyu Tian, Qi Yang, Yun Ma
摘要
WebGL has long been the prevalent API for GPU-accelerated graphics in web browsers, boosting 2D/3D graphical web applications. Despite widespread adoption, WebGL's programming model hinders its rendering performance on modern GPU hardware. To this end, WebGPU has been proposed as the next-generation API of GPU-accelerated processing in web browsers, exhibiting higher performance than WebGL. However, considering the complex logic of WebGL applications and the still-evolving WebGPU specification, statically migrating existing WebGL applications to WebGPU from source code is labor-intensive. To address this issue, we propose GL2GPU, an intermediate layer that dynamically translates WebGL to WebGPU at JavaScript runtime to improve rendering performance. GL2GPU addresses the inconsistencies between the WebGL and WebGPU programming models by emulating WebGL rendering states and leverages performance optimization mechanisms introduced by WebGPU to reduce the overhead of dynamic translation. Evaluation of three representative WebGL benchmarks shows that GL2GPU significantly enhances end-to-end rendering performance while maintaining visual consistency, achieving an average frame time reduction of 45.05% across different devices and operating systems.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
脉络
它引用的 Paper9
- JavaScript Zero: Real JavaScript and Zero Side-Channel AttacksMichael Schwarz, Moritz Lipp, Daniel GrussNDSS 2018 · 67 次引用
- Detecting Node.js prototype pollution vulnerabilities via object lookup analysisSong Li, Mingqing Kang, Jianwei Hou, Yinzhi CaoFSE 2021 · 49 次引用
- MC Mutants: Evaluating and Improving Testing for Memory Consistency SpecificationsReese Levine, Tianhao Guo, Mingun Cho, Alan Baker 等ASPLOS 2023 · 8 次引用
- GPUHarbor: Testing GPU Memory Consistency at Large (Experience Paper)Reese Levine, Mingun Cho, Devon McKee, Andrew Quinn 等ISSTA 2023 · 7 次引用
- Residency Octree: A Hybrid Approach for Scalable Web-Based Multi-Volume RenderingLukas Herzberger, Markus Hadwiger, Robert Krüger, Peter K. Sorger 等IEEE VIS 2023 · 7 次引用
相关 Paper
- FusionRender: Harnessing WebGPU's Power for Enhanced Graphics Performance on Web BrowsersWeichen Bi, Yun Ma, Yudong Han, Yifan Chen 等WWW 2024 · 5 次引用
- WeInfer: Unleashing the Power of WebGPU on LLM Inference in Web BrowsersZhiyang Chen, Yun Ma, Haiyang Shen, Mugeng LiuWWW 2025 · 9 次引用
- Characterizing GPU-accelerated Web Applications in BrowsersYudong Han, Weichen Bi, Haiyang Shen, Mugeng Liu 等ICSE 2026
- Uniformity Analysis in the WebGPU Shading LanguageJames Lee-Jones, John Wickerson, Alastair F. DonaldsonPLDI 2026 · 1 次引用
- SafeRace: Assessing and Addressing WebGPU Memory Safety in the Presence of Data RacesReese Levine, Ashley Lee, Neha Abbas, Kyle Little 等OOPSLA 2025 · 3 次引用
