Skip to content

A better version of split_frame#2583

Merged
hoffstadt merged 1 commit intohoffstadt:masterfrom
v-ein:feature/better-split-frame
Jan 4, 2026
Merged

A better version of split_frame#2583
hoffstadt merged 1 commit intohoffstadt:masterfrom
v-ein:feature/better-split-frame

Conversation

@v-ein
Copy link
Collaborator

@v-ein v-ein commented Dec 19, 2025


name: Pull Request
about: Create a pull request to help us improve
title: A better version of split_frame, releases immediately after frame rendering has ended.
assignees: ''


Description:
This PR improves on how split_frame waits for a frame to get rendered: now there's no loop polling on delay intervals (and no delay argument at all), the function gets notified about the next frame immediately after its rendering has ended.

Another effect of this PR is that destroy_context causes any waiting split_frame to fail with an exception, whereas the earlier version would just hang up forever.

Concerning Areas:
Users might need to adapt their code to catch or suppress exceptions, though 99.9% of them probably won't notice the change.

@v-ein v-ein requested a review from hoffstadt December 19, 2025 05:30
@hoffstadt hoffstadt merged commit 2362735 into hoffstadt:master Jan 4, 2026
4 checks passed
@v-ein v-ein deleted the feature/better-split-frame branch February 3, 2026 06:38
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