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

[d3d9] Reduce size of state blocks #3239

Closed
wants to merge 1 commit into from
Closed

Conversation

K0bin
Copy link
Collaborator

@K0bin K0bin commented Feb 6, 2023

Fixes #2703

Reduces the size of an empty state block from ~190 KB to 2.2 KB. The actual state is down to 352 bytes and 1816 bytes is the capture bit sets (remember, we need 8192 bits for just the vs float consts). I also changed it to only allocate the hardware vertex constant set if software vertex processing isn't enabled on the device.

It's pretty ugly but it works and we avoided having to completely rewrite state blocks.

@Blisto91
Copy link
Contributor

Blisto91 commented Feb 6, 2023

Fixes #2703

Verified

@K0bin
Copy link
Collaborator Author

K0bin commented Mar 10, 2023

Superseded by #3248

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[d3d9] Shogun 2 crash on battle exit
2 participants