-
-
Notifications
You must be signed in to change notification settings - Fork 21.5k
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
Update OpenXRAPI
memory management
#101294
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! This will be a very welcome change :-)
I haven't tested with this PR, but reading through the diff, it looks good to me
However, I think there may be a couple more places where we could use Vector
/LocalVector
, for example, in OpenXRAPI::RenderState
with the views. Also, in openxr_opengl_extension.cpp
and openxr_vulkan_extension.cpp
.
Any reason why you skipped those? It would be nice to knock them all out at once.
@dsnopek Thanks for pointing those out, I will take a look and update them soon! |
5769096
to
6d36699
Compare
@dsnopek Alright, I believe I've updated the other instances you were referring to. |
6d36699
to
5af915d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code change looks good!
5af915d
to
fb9d6eb
Compare
@m4gr3d applied your error nit and discovered I could remove the intermediary pointers to the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! I only have some nitpicks about doing unnecessary if-statements before .clear()
ing the vectors.
I also did a quick smoke test with Quest 3 and everything seems to be working fine
fb9d6eb
to
c242cef
Compare
@dsnopek addressed your comments, thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Thanks! |
It was mentioned here that
OpenXRAPI
could use some updates to its memory management. I've updated it to useVector
/LocalVector
where possible!