Im having some extreme slowness coming from Gfx.ReadbackImage. I was wondering if someone could run me through the what and why of this little vampire. From what i read on the web it passed info back to the CPU from the GPU. What kind of info and how do I reduce this call or the amount of data? It there something I’m doing to wrong that is causing this to be so slow?
Thanks in advance
Gfx.ReadbackImage - Framrate drop to 15fsp
-
- Posts: 32
- Joined: Thu Oct 04, 2018 2:20 pm
- Amplify_Borba
- Posts: 1239
- Joined: Mon Jul 24, 2017 9:50 am
Re: Gfx.ReadbackImage - Framrate drop to 15fsp
Hey there, could you please elaborate on the context of this situation?
Also, sharing Unity version and hardware specs would also be extremely useful in helping to understand the issue.
Also, sharing Unity version and hardware specs would also be extremely useful in helping to understand the issue.
Customer Relations at Amplify Creations
Learn more about our offering: Amplify Creations Products
Amplify Shader Editor won the Asset Store Best Tool Award - Thank you for your support!
Learn more about our offering: Amplify Creations Products
Amplify Shader Editor won the Asset Store Best Tool Award - Thank you for your support!
-
- Posts: 32
- Joined: Thu Oct 04, 2018 2:20 pm
Re: Gfx.ReadbackImage - Framrate drop to 15fsp
Sure, I have a shader that uses texture arrays to blend between the different texture indices. When I run the profile I seem to get some slowness on Gfx.ReadbackImage. See attachment. Im trying to investigate if there is something in my end that is causing this slowness.
-EDIT : its real time GI causing the slowness
-EDIT : its real time GI causing the slowness
- Attachments
-
- RenderPro.png (190.52 KiB) Viewed 7131 times
- Amplify_Borba
- Posts: 1239
- Joined: Mon Jul 24, 2017 9:50 am
Re: Gfx.ReadbackImage - Framrate drop to 15fsp
Thank you for the additional information, could you confirm if the issue is also present while using other similar shaders that take advantage of arrays?
Customer Relations at Amplify Creations
Learn more about our offering: Amplify Creations Products
Amplify Shader Editor won the Asset Store Best Tool Award - Thank you for your support!
Learn more about our offering: Amplify Creations Products
Amplify Shader Editor won the Asset Store Best Tool Award - Thank you for your support!
-
- Posts: 32
- Joined: Thu Oct 04, 2018 2:20 pm
Re: Gfx.ReadbackImage - Framrate drop to 15fsp
Im sorry I dont have anything outside of amplify to compare it too at this time. Once you go amplify you never go back
- Amplify_Borba
- Posts: 1239
- Joined: Mon Jul 24, 2017 9:50 am
Re: Gfx.ReadbackImage - Framrate drop to 15fsp
No problem, glad to know you have no plans of going back!
Feel free to let us know if you suspect that any performance hiccups might be related to our shaders, we'll be happy to help you debug the issue.
Feel free to let us know if you suspect that any performance hiccups might be related to our shaders, we'll be happy to help you debug the issue.
Customer Relations at Amplify Creations
Learn more about our offering: Amplify Creations Products
Amplify Shader Editor won the Asset Store Best Tool Award - Thank you for your support!
Learn more about our offering: Amplify Creations Products
Amplify Shader Editor won the Asset Store Best Tool Award - Thank you for your support!