Skip to content

BF: Fix view and projection matrices not being applied before first flip#7381

Merged
TEParsons merged 1 commit intopsychopy:releasefrom
mdcutone:release-bf-checktiming-win-scale-incorrect
Oct 3, 2025
Merged

BF: Fix view and projection matrices not being applied before first flip#7381
TEParsons merged 1 commit intopsychopy:releasefrom
mdcutone:release-bf-checktiming-win-scale-incorrect

Conversation

@mdcutone
Copy link
Copy Markdown
Member

@mdcutone mdcutone commented Sep 2, 2025

Fixes the issue where visual stimuli appear incorrectly scaled prior to the first flip call. This was caused by the projection matrix for 2D rendering being incorrect until cleared and reset by a flip call. How the default ortho projection matrix is computed has been changed, no longer accounting for window dimensions since that's dealt with by the stimuli's vertex data container

I added method setDefaultView() to put matrices in the correct state for PsychoPy's 2D stim classes and now have setOrthographicView separate for those who wish to scale coordinates that way

@codecov
Copy link
Copy Markdown

codecov bot commented Sep 2, 2025

Codecov Report

❌ Patch coverage is 63.63636% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 12.24%. Comparing base (5b2b6dc) to head (79a5f2f).
⚠️ Report is 35 commits behind head on release.

Additional details and impacted files
@@             Coverage Diff             @@
##           release    #7381      +/-   ##
===========================================
- Coverage    12.26%   12.24%   -0.03%     
===========================================
  Files          351      351              
  Lines        64531    64537       +6     
===========================================
- Hits          7917     7904      -13     
- Misses       56614    56633      +19     
Components Coverage Δ
app ∅ <ø> (∅)
boilerplate ∅ <ø> (∅)
library ∅ <ø> (∅)
vm-safe library ∅ <ø> (∅)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@TEParsons TEParsons self-requested a review September 4, 2025 13:06
Copy link
Copy Markdown
Contributor

@TEParsons TEParsons left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure how to test the bug this fixes but the changes seem sound and don't appear to affect running normally so I'm happy to pull in :)

@TEParsons TEParsons merged commit a86987a into psychopy:release Oct 3, 2025
5 checks passed
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.

2 participants