Skip to content

ENH: Speed-up MovieStim (noticeable for larger videos)#6449

Merged
TEParsons merged 2 commits into
psychopy:devfrom
aforren1:mov-enh
May 9, 2024
Merged

ENH: Speed-up MovieStim (noticeable for larger videos)#6449
TEParsons merged 2 commits into
psychopy:devfrom
aforren1:mov-enh

Conversation

@aforren1
Copy link
Copy Markdown
Contributor

@aforren1 aforren1 commented May 8, 2024

See #6439 for context. With my AMD+Ubuntu 22.04 laptop and this sample video, I get an overall reduction in MovieStim.draw() time (starting from this patch) from ~34ms to ~4ms (i.e. ~40ms -> 4ms across both sets of patches). I haven't tested on other systems yet, but will try on a Windows 11 + Intel and Ubuntu 20.04 + AMD desktop today.

aforren1 added 2 commits May 8, 2024 12:50
Applies to the ffpyplayer backend of MovieStim. This saves
a copy, as long as the frame remains alive while we use the data.
Various sources suggest that BGRA is preferred by the graphics hardware
@TEParsons TEParsons changed the title Speed-up of MovieStim (noticeable for larger videos) (ENH edition) ENH: Speed-up MovieStim (noticeable for larger videos) May 9, 2024
@TEParsons TEParsons merged commit 2c3885c into psychopy:dev May 9, 2024
@peircej peircej added the 🌟 enhancement Proposed improvement or feature request. label Jul 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🌟 enhancement Proposed improvement or feature request.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants