Skip to content

Fix: Align gpuAcceleratedSort default with documented behavior#485

Open
rajkandula wants to merge 1 commit into
mkkellogg:mainfrom
charanrajkandula-opensource:fix/gpu-sort-default
Open

Fix: Align gpuAcceleratedSort default with documented behavior#485
rajkandula wants to merge 1 commit into
mkkellogg:mainfrom
charanrajkandula-opensource:fix/gpu-sort-default

Conversation

@rajkandula

Copy link
Copy Markdown

Description

The README.md and documentation state that gpuAcceleratedSort should default to false on mobile devices and true on desktops. However, the constructor implementation had it hardcoded to options.gpuAcceleratedSort || false, meaning it defaulted to false on all devices.

Changes

Modified the initialization in Viewer.js to default to !this.isMobile() when not explicitly provided, enabling GPU-accelerated sorting pre-computations on desktop out-of-the-box as originally intended.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant