Hi,
I am experiencing spikes in CPU/GPU usage. I had this with alpha 35 and now I have updated to alpha 36.
Seems like a GC.Collect is causing this. How can I avoid this? It makes for stuttering ingame.
Best regards,
Mikael
Usage Spikes
-
- Posts: 18
- Joined: Wed Jul 23, 2014 12:00 pm
Usage Spikes
- Attachments
-
- AmplifyTextureSpike_Expanded.PNG (225.16 KiB) Viewed 38 times
-
- AmplifyTextureSpike.PNG (230.16 KiB) Viewed 38 times
- Ricardo Teixeira
- Posts: 954
- Joined: Fri Aug 09, 2013 2:26 pm
Re: Usage Spikes
Hello,
Interesting, we are not entirely sure if this is directly related to AT2 but it’s possible. We need some additional information in order to debug the problem.
• Amplify Camera Runtime values. (Screenshot)
• Is the problem only present in the editor or does it also affects builds?
Would it be possible to examine a sample project with the problem present? That would really speedup the debug process.
Thanks!
Interesting, we are not entirely sure if this is directly related to AT2 but it’s possible. We need some additional information in order to debug the problem.
• Amplify Camera Runtime values. (Screenshot)
• Is the problem only present in the editor or does it also affects builds?
Would it be possible to examine a sample project with the problem present? That would really speedup the debug process.
Thanks!
Sales & 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: 18
- Joined: Wed Jul 23, 2014 12:00 pm
Re: Usage Spikes
I use the standard runtime values. Though I have a large scene I might be able to optimize these settings?Ricardo Teixeira wrote:Hello,
Interesting, we are not entirely sure if this is directly related to AT2 but it’s possible. We need some additional information in order to debug the problem.
• Amplify Camera Runtime values. (Screenshot)
• Is the problem only present in the editor or does it also affects builds?
Would it be possible to examine a sample project with the problem present? That would really speedup the debug process.
Thanks!
The stuttering affects builds aswell. It seems that your plugin calls GC.Collect which could mean that there is something in my application that makes the collect really slow. I have not encountered this in another project. The project I am working on is to large to just send over.
- Attachments
-
- AmplifyTextureRuntime.PNG (53.95 KiB) Viewed 33 times
- Diogo Teixeira
- Posts: 124
- Joined: Sat Aug 10, 2013 12:34 am
Re: Usage Spikes
Hi Mikael,mikaelwallin wrote:I use the standard runtime values. Though I have a large scene I might be able to optimize these settings?
The stuttering affects builds aswell. It seems that your plugin calls GC.Collect which could mean that there is something in my application that makes the collect really slow. I have not encountered this in another project. The project I am working on is to large to just send over.
I was able to replicate this in a nearly empty scene using one of our test virtual textures. You are right. We're definitely allocating way too many blocks memory during streaming, which seems to be triggering long GC collects:

Should be an easy fix, however. I'll be taking care of this first thing tomorrow and will make sure our next update no longer does crazy per-frame allocations like this.
Thank you for taking the time to report this.
Cheers
Research & Development at Amplify Creations
-
- Posts: 18
- Joined: Wed Jul 23, 2014 12:00 pm
Re: Usage Spikes
Very nice! Looking forward to it.Diogo Teixeira wrote:Hi Mikael,mikaelwallin wrote:I use the standard runtime values. Though I have a large scene I might be able to optimize these settings?
The stuttering affects builds aswell. It seems that your plugin calls GC.Collect which could mean that there is something in my application that makes the collect really slow. I have not encountered this in another project. The project I am working on is to large to just send over.
I was able to replicate this in a nearly empty scene using one of our test virtual textures. You are right. We're definitely allocating way too many blocks memory during streaming, which seems to be triggering long GC collects:
Should be an easy fix, however. I'll be taking care of this first thing tomorrow and will make sure our next update no longer does crazy per-frame allocations like this.
Thank you for taking the time to report this.
Cheers
-
- Posts: 18
- Joined: Wed Jul 23, 2014 12:00 pm
Re: Usage Spikes
Did you fix this? If so do you have an estimate of next release or some way to release just this fix?
Best regards,
Mikael
Best regards,
Mikael
- Ricardo Teixeira
- Posts: 954
- Joined: Fri Aug 09, 2013 2:26 pm
Re: Usage Spikes
Hello Mikael,
Yes, I was about to contact you via email, we have a preview available.
Talk to you soon.
Yes, I was about to contact you via email, we have a preview available.
Talk to you soon.
Sales & 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!