Usage Spikes

Development feedback for early adopters.
Post Reply
mikaelwallin
Posts: 18
Joined: Wed Jul 23, 2014 12:00 pm

Usage Spikes

Post by mikaelwallin »

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
Attachments
AmplifyTextureSpike_Expanded.PNG
AmplifyTextureSpike_Expanded.PNG (225.16 KiB) Viewed 39 times
AmplifyTextureSpike.PNG
AmplifyTextureSpike.PNG (230.16 KiB) Viewed 39 times
User avatar
Ricardo Teixeira
Posts: 954
Joined: Fri Aug 09, 2013 2:26 pm

Re: Usage Spikes

Post by Ricardo Teixeira »

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!
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!
mikaelwallin
Posts: 18
Joined: Wed Jul 23, 2014 12:00 pm

Re: Usage Spikes

Post by mikaelwallin »

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!
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.
Attachments
AmplifyTextureRuntime.PNG
AmplifyTextureRuntime.PNG (53.95 KiB) Viewed 34 times
User avatar
Diogo Teixeira
Posts: 124
Joined: Sat Aug 10, 2013 12:34 am

Re: Usage Spikes

Post by Diogo Teixeira »

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.
Hi Mikael,

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:

Image

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
mikaelwallin
Posts: 18
Joined: Wed Jul 23, 2014 12:00 pm

Re: Usage Spikes

Post by mikaelwallin »

Diogo Teixeira wrote:
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.
Hi Mikael,

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:

Image

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
Very nice! Looking forward to it.
mikaelwallin
Posts: 18
Joined: Wed Jul 23, 2014 12:00 pm

Re: Usage Spikes

Post by mikaelwallin »

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
User avatar
Ricardo Teixeira
Posts: 954
Joined: Fri Aug 09, 2013 2:26 pm

Re: Usage Spikes

Post by Ricardo Teixeira »

Hello Mikael,

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!
Post Reply