Skip to content

Save snapshots on another thread so they don't block the main one - #2255

Open
ada-tv wants to merge 1 commit into
overte-org:masterfrom
ada-tv:fix/snapshot-hitching
Open

Save snapshots on another thread so they don't block the main one#2255
ada-tv wants to merge 1 commit into
overte-org:masterfrom
ada-tv:fix/snapshot-hitching

Conversation

@ada-tv

@ada-tv ada-tv commented May 4, 2026

Copy link
Copy Markdown
Collaborator

Master

Hitches while compressing and saving the snapshot

snapshot-hitching-master.webm

This PR

Uses QtConcurrent::run to save the snapshot on another thread, similar to how 360 snapshots are stitched into cubemaps/equirect maps using QtConcurrent::run

snapshot-hitching-fix.webm

@ada-tv ada-tv added needs CR This pull request needs to be code reviewed needs QA This pull request needs to be tested user experience Making the game easier and more fun to use, or changing unexpected and confusing behavior labels May 4, 2026
@HifiExperiments HifiExperiments added CR approved This pull request has been successfully code reviewed and removed needs CR This pull request needs to be code reviewed labels May 8, 2026
@JulianGro

JulianGro commented May 15, 2026

Copy link
Copy Markdown
Member

One thing I noticed while testing this is that you can get Overte to crash now by spamming the screenshot button.
It will throw a libpng error; Either libpng error: IDAT: CRC error or libpng error: Read Error. Maybe it is trying to save multiple screenshots to the same filename or something?

I cannot get Overte to crash on the latest release by spamming the screenshot button; It will register only some of the button presses and just work off the screenshot requests one by one.

By crash I mean Overte deadlocking after the error and throwing a SIGSEGV later.

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

Labels

CR approved This pull request has been successfully code reviewed needs QA This pull request needs to be tested user experience Making the game easier and more fun to use, or changing unexpected and confusing behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants