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

Pause videos when outside of frustrum #56

Open
alex-shortt opened this issue Jun 18, 2021 · 0 comments
Open

Pause videos when outside of frustrum #56

alex-shortt opened this issue Jun 18, 2021 · 0 comments
Labels
performance make things run faster

Comments

@alex-shortt
Copy link
Collaborator

more specifically, we should not update the video texture every frame instead of pausing it since we might still want the audio.

the frustrum check can be done by calculating each vertex of the video plane and doing some fun math
https://stackoverflow.com/questions/41163030/determine-if-point-is-in-frustum

the stopping of the texture updates seems more sketch, we miiight need to hijack the video texture's update method

@alex-shortt alex-shortt added the performance make things run faster label Jun 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
performance make things run faster
Development

No branches or pull requests

1 participant