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

[d3d8] Handle DEFAULT->MANAGED in CopyRects #184

Merged
merged 1 commit into from
Jul 7, 2024

Conversation

WinterSnowfall
Copy link

@WinterSnowfall WinterSnowfall commented Sep 7, 2023

Arguably not ideal, but having some way of handling it is better than derping out and doing nothing. We can always implement a GPU copy later on to optimize peformance, but for now handling MANAGED as we do SYSTEMMEM seems to do the trick and fixes #66 (which has bugged me for quite some time).

Without PR

Broken

With PR

Fixed

DEFAULT->MANAGED doesn't seem to be a very hot path, but there are games out there that will hit it occasionally.

@WinterSnowfall
Copy link
Author

WinterSnowfall commented Sep 7, 2023

I've also taken the liberty to make CopyRects logging more verbose on unhandled cases, since we ideally would want to see these sort of problems in the logs that people send us.

@AlpyneDreams AlpyneDreams merged commit 137dbeb into AlpyneDreams:main Jul 7, 2024
4 checks passed
@WinterSnowfall WinterSnowfall deleted the d8vk-copyrects branch July 7, 2024 11:30
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.

Impossible Creatures - terrain shadow issues
2 participants