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

Shrink the GLRRenderCommand struct from 152 to 88 bytes #17442

Merged
merged 2 commits into from
May 16, 2023

Conversation

hrydgard
Copy link
Owner

@hrydgard hrydgard commented May 9, 2023

Turns out the VR work bloated it a bit, which can't be good. Though 88 bytes is also bloated..

Think it's fine to allocate these view matrices on the heap to get them out of the way, there won't be that crazy many per frame usually.

Turns out the VR work bloated it a bit, which can't be good.

Think it's fine to allocate these view matrices on the heap to get them
out of the way, there won't be that crazy many per frame usually.
@hrydgard hrydgard added the GE emulation Backend-independent GPU issues label May 9, 2023
@hrydgard hrydgard added this to the v1.16.0 milestone May 9, 2023
@hrydgard
Copy link
Owner Author

I realized that this doesn't work with the current play-back-twice stereo implementation since it'll delete the matrix while rendering the first eye. Just needs some extra logic though.

@hrydgard hrydgard merged commit c729519 into master May 16, 2023
@hrydgard hrydgard deleted the glr-render-command-shrink branch May 16, 2023 14:38
@unknownbrackets unknownbrackets modified the milestones: v1.16.0, v1.15.4 May 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
GE emulation Backend-independent GPU issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants