Computer History causes severe performance degradation in a Qt application on macOS
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 125k
- Forks
- 19.4k
- PR merge metrics
- PR metrics pending
Description
What version of the Codex App are you using (From “About Codex” dialog)?
26.908.70816
What subscription do you have?
Chat GPT Pro 5x
What platform is your computer?
macOS Darwin 27.2.0 arm64 arm
What issue are you seeing?
I found a reproducible interaction between the Codex desktop Computer History feature and Tibia on macOS.
Environment
- MacBook Pro 14-inch, Apple M4 Pro
- 48 GB unified memory
- macOS 27.0
- Tibia macOS client
- Tibia uses Qt / Qt Quick and currently runs as an x86-64 process through Rosetta
Reproduction
- Launch Tibia.
- Performance is normal at approximately 190–200 FPS.
- Enable/use Codex Computer History while Tibia is not excluded.
- Interact with Tibia's UI for a short period.
- FPS progressively decreases, sometimes reaching approximately 30 FPS.
- Disable Computer History or close Codex.
- Tibia immediately returns to normal FPS without restarting.
- Re-enable Computer History and the issue returns.
Important isolation test
If Tibia is added as an exception/excluded application in Computer History, the problem does not occur.
Computer History can remain enabled for other applications and Tibia continues running normally.
This strongly indicates that the issue occurs specifically while Computer History is inspecting/processing the Tibia window.
macOS sampling results
During the affected state, Tibia's main thread spends a very large amount of time servicing macOS Accessibility requests through Qt.
Representative stack:
_XCopyMultipleAttributeValues
_AXXMIGCopyMultipleAttributeValues
NSAccessibilityChildren
QAccessibleQuickWindow::child()
QtQuick
In one affected sample, approximately 1,114 out of 1,754 main-thread samples were inside a single Accessibility request path, with approximately 1,105 samples involving:
QAccessibleQuickWindow::child()
Other frequently observed Qt Quick paths included:
QQuickDeliveryAgentPrivate::deliverHoverEventRecursive()
QQuickItemPrivate::itemToWindowTransform()
QQuickWindowPrivate::findCursorItemAndHandler()
Some UI components, particularly Tibia's Action Bars, make the problem much easier to reproduce because they appear to create a larger/more dynamic Qt Quick tree.
Expected behavior
Computer History should inspect an application without causing substantial performance degradation in the inspected process.
Actual behavior
When Tibia is included in Computer History monitoring, Accessibility/UI inspection can consume most of Tibia's main thread and reduce its frame rate from approximately 200 FPS to approximately 30 FPS.
Excluding Tibia from Computer History completely prevents the issue.
I can provide macOS sample captures from both the normal and affected states if useful.
What steps can reproduce the bug?
Open Tibia (Or other QT apps) with Computer History enabled and ChatGPT app open
What is the expected behavior?
No response
Additional information
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the Computer History monitoring path and compare the provided normal and affected macOS sample captures. Investigate the Accessibility request path involving NSAccessibilityChildren and QAccessibleQuickWindow::child() while inspecting Qt/Qt Quick windows. Done means monitoring does not substantially reduce the inspected application's frame rate, while excluding the application remains unnecessary.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- macos
- Domain
- desktop, performance
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100