Lune

ICSE2026Top-tier venue

XRFix: Exploring Performance Bug Repair of Extended Reality Applications with Large Language Models

Jingwen Wu, Hanyang Guo, Hong-Ning Dai, Xiapu Luo

2026Year

Abstract

As an emerging technology, Extended Reality (XR) provides endusers with an immersive experience of interacting with virtual and physical environments. Unlike traditional software, the execution of XR applications involves more computationally complex operations, such as 3D scene rendering, real-time animation, and process simulations. Inefficient coding practices during the software development of XR applications may cause various performance bugs, degrading user experience and even causing motion sickness. Thus, it is an urgent need to develop an automated program repair (APR) framework for fixing performance bugs in complex XR programs. However, it is non-trivial to achieve this goal due to several technical challenges: (1) a lack of a real-world XR codebase and bug dataset, (2) no accurate bug detection tool, and (3) no effective bug-fixing tool designed for XR performance bugs. To tackle these challenges, we present a novel large language model-based framework, namely XRFix, to repair performance bugs for open-source XR programs. To overcome the first challenge, we first construct a corpus of domain-specific performance bugs built with a codebase from 23 open-source XR projects and a dataset of XR-related bugs containing 104 real-world bugs. To address the second challenge, we tailor two static analysis tools for accurately detecting bugs in both C# scripts and asset files. For the third challenge, we design different prompts to instruct large language models (LLMs) to fix XR bugs in three types of bug scenarios with different complexities, i.e., single-line level, function level, and class level. We conduct extensive experiments on five off-the-shelf LLMs to evaluate the bug-fixing performance of XRFix. We also compare our XRFix with three state-of-the-art (SOTA) APR approaches. Through static analysis, reference answer comparison, and manual inspection, we demonstrate that our XRFix can effectively fix XR bugs, outperforming SOTA APR methods. For example, our XRFix achieves 67.3% fixing rate, i.e., 7.7% higher than the second-best method. We make XRFix available on GitHub. 1 .

Ask about this paper

Your agent reads all of it.

Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.

Questions to start from

Your agent calls

Luneget_paper_fulltext

Ask in Lune

Free to start. No credit card required.

lune papers fulltext 7bd22ca8-3736-4a11-b1e4-628bbb137edf

Builds on22

Related papers

Dusk over the sea between two cliffs drawn in fine vertical lines