Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GL: Optimize video uploads a bit #9485

Merged
merged 2 commits into from
Mar 23, 2017
Merged

Conversation

unknownbrackets
Copy link
Collaborator

A common case is that we're uploading a video with stride 512 to a 480 wide buffer. In GL, we end up shuffling the video into a temporary buffer before uploading - this cuts that off.

This also allows for more cases of reuse of the pixel texture (if we want to), mostly for DrawPixels(), rather than nuking on any size change, as we do currently.

Saw this while investigating #9262.

-[Unknown]

For example, if it has a larger texture it wants to reuse, it can control
this via texcoords.  Let's keep it at top left, though.
@hrydgard hrydgard merged commit 0f7c039 into hrydgard:master Mar 23, 2017
@unknownbrackets unknownbrackets deleted the video-optim branch March 23, 2017 14:04
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