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

Stereo mode pre-render and post-render hook #188

Open
Matyooo opened this issue May 17, 2016 · 0 comments
Open

Stereo mode pre-render and post-render hook #188

Matyooo opened this issue May 17, 2016 · 0 comments

Comments

@Matyooo
Copy link

Matyooo commented May 17, 2016

Hi @DiegoGomezDeck !

Another questions regarding stereo behaviour:
In our app there is a lot of update code per frame. This code is running in a 'pre-render hook', that is created from a DefaultRenderer which is executed first as it is the first renderer given to the builder.

This approach works nicely until the app switches to Stereo mode because in stereo, all renderer is called twice. This causes our update code to run twice per frame. My suggestion would be to create a method hook that runs only once per frame. Maybe one before the frame starts and another after the frame ends.

What do you think?

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

No branches or pull requests

1 participant