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

Possbility of storing data in D3D9 objects via GetPrivateData/SetPrivateData #32

Open
AlpyneDreams opened this issue Oct 22, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@AlpyneDreams
Copy link
Owner

AlpyneDreams commented Oct 22, 2022

This may be useful in cases where we'd rather not cache stuff such as pointers to D3D8 objects.

To do this, would want to add an optimized fast path case for certain (or all) uses of Set/GetPrivateData (current ComPrivateData implementation is O(n)) in D3D9. Note that there would probably still be more overhead than caching but less validation issues I imagine. Caching does work fine for the time being.

@AlpyneDreams AlpyneDreams added the enhancement New feature or request label Oct 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant