★ wanayoo — archive 1999 https://github.com/react-spring/react-postprocessing/issues/16Nouvelle recherche | Portail wanayoo
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

Performance drops when using with drei>Reflector #16

Open
gsimone opened this issue Aug 3, 2020 · 2 comments
Open

Performance drops when using with drei>Reflector #16

gsimone opened this issue Aug 3, 2020 · 2 comments

Comments

@drcmda
Copy link
Collaborator

@drcmda drcmda commented Aug 3, 2020

reflector is quite expensive, i think it re-renders everything again (?), not sure how these two interact otherwise.

@vanruesc
Copy link

@vanruesc vanruesc commented Aug 8, 2020 •

Related: vanruesc/postprocessing#219 (comment), mrdoob/three.js#19248

The performance issue is most likely caused by three's outputEncoding system. Reflector probably triggers shader recompilations each frame due to alternating output encodings (e.g. renderTarget uses LinearEncoding, screen uses sRGBEncoding).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.