Lune

WWW2025Top-tier venue

GL2GPU: Accelerating WebGL Applications via Dynamic API Translation to WebGPU

Yudong Han, Weichen Bi, Ruibo An, Deyu Tian, Qi Yang, Yun Ma

Abstract

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.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

Questions to start from

Lune can draw on

the full paper · related work

Get the answer

Free to start. No credit card required.

Lineage

Builds onCited byLeft to right by year; the more cited, the higher.

Builds on9

  1. JavaScript Zero: Real JavaScript and Zero Side-Channel AttacksMichael Schwarz, Moritz Lipp, Daniel GrussNDSS 2018 · 67 citations
  2. Detecting Node.js prototype pollution vulnerabilities via object lookup analysisSong Li, Mingqing Kang, Jianwei Hou, Yinzhi CaoFSE 2021 · 49 citations
  3. MC Mutants: Evaluating and Improving Testing for Memory Consistency SpecificationsReese Levine, Tianhao Guo, Mingun Cho, Alan Baker et al.ASPLOS 2023 · 8 citations
  4. GPUHarbor: Testing GPU Memory Consistency at Large (Experience Paper)Reese Levine, Mingun Cho, Devon McKee, Andrew Quinn et al.ISSTA 2023 · 7 citations
  5. Residency Octree: A Hybrid Approach for Scalable Web-Based Multi-Volume RenderingLukas Herzberger, Markus Hadwiger, Robert Krüger, Peter K. Sorger et al.IEEE VIS 2023 · 7 citations

Related papers

  1. FusionRender: Harnessing WebGPU's Power for Enhanced Graphics Performance on Web BrowsersWeichen Bi, Yun Ma, Yudong Han, Yifan Chen et al.WWW 2024 · 5 citations
  2. WeInfer: Unleashing the Power of WebGPU on LLM Inference in Web BrowsersZhiyang Chen, Yun Ma, Haiyang Shen, Mugeng LiuWWW 2025 · 9 citations
  3. Characterizing GPU-accelerated Web Applications in BrowsersYudong Han, Weichen Bi, Haiyang Shen, Mugeng Liu et al.ICSE 2026
  4. Uniformity Analysis in the WebGPU Shading LanguageJames Lee-Jones, John Wickerson, Alastair F. DonaldsonPLDI 2026 · 1 citation
  5. SafeRace: Assessing and Addressing WebGPU Memory Safety in the Presence of Data RacesReese Levine, Ashley Lee, Neha Abbas, Kyle Little et al.OOPSLA 2025 · 3 citations
Dusk over the sea between two cliffs drawn in fine vertical lines