#Thread

1 messages · Page 1 of 1 (latest)

spiral kindle
#

pls help here

thin panther
#

profiler has no use until u open the detail

#

u need to see the detail of how it was broken down

spiral kindle
#

Okay, he is asking what method calls

alpine sage
#

Change from timeline to hierarchy

spiral kindle
#

Working on it rn

thin panther
spiral kindle
thin panther
#

playerloop

alpine sage
#

Alt click an arrow to expand all

spiral kindle
thin panther
#

we need to see all the breakdowns

#

hierachy

rich mango
#

expand the player loop and then also every thing with over like 20% at least or like Osmal said

spiral kindle
#

which arrow do we expand

thin panther
#

playerloop

#

and plz make it on hierachy mode

spiral kindle
thin panther
#

apparently theres a function called "waitforlastpresentation"

spiral kindle
#

were thinking its the garbage collector thing

thin panther
#

and GC

alpine sage
#

GC.Collect is because something is generating garbage a lot

thin panther
#

can we backtrace what is generating garbage?

spiral kindle
#

could that be are issue

alpine sage
spiral kindle
#

and those are from that one spike

thin panther
alpine sage
#

Look at other frames too

spiral kindle
thin panther
#

we can ignore those 0.0 , 0.5%

alpine sage
#

Clear and re record

#

After you enabled callstack and deep

thin panther
#

focus on those 20%+ first

spiral kindle
#

We are going back into game

spiral kindle
thin panther
#
  1. first of all, enable callstack and deep profiling
#
  1. when u look at hierachy display all the callings, they will display resource usages
#

which is total

spiral kindle
#

they are enabled

#

what do we do now

thin panther
spiral kindle
thin panther
#

if GC is occupying 30% again, it would be GC problem, and because u enabled callstacks

#

ok

spiral kindle
#

He is saying its just a lot of rendering

thin panther
#

it was GC problem

spiral kindle
#

What do we do

#

I'm just trying to be the intermediate third party relaying informatino

thin panther
#

if fps dropped, it mostly because of CPU / GPU and RAM

alpine sage
#

Why isnt the dev asking it here instead

spiral kindle
#

We were showing a single spike

thin panther
#

can u tell him to get here

spiral kindle
#

Okay he'll join shortly

copper spoke
#

Hello

alpine sage
#

If your GC seems to be the problem in most of the frames, you need to look for what is causing GC.Alloc

#

You can sort by it

copper spoke
alpine sage
#

Okay then look at other frames

#

Dont jump into conclusions based on one frame data

spiral kindle
#

I'm sending a video

thin panther
#

u need to look for another spikes, there should be more than 1 spike

spiral kindle
#

a spike of what specifically

thin panther
#

GC spike

spiral kindle
copper spoke
thin panther
#

see? spikes

#

u need to check on those

copper spoke
spiral kindle
#

Could it be editor loop?

thin panther
#

thats editor

#

not player

copper spoke
thin panther
#

check these spikes

alpine sage
#

The profiler itself can cause lag too so dont pay too much attention to editorloop

thin panther
#

editor loop is the recording of editor itself

copper spoke
thin panther
#

u dont expect player to play on the editor

copper spoke
spiral kindle
alpine sage
#

Do you know how to read a hierarchy

spiral kindle
#

I thought it might be, but I'm not very knowledged in Unity

copper spoke
alpine sage
#

It says XRUpdate takes 54% of the resources

spiral kindle
#

Open what

thin panther
#

XRUpdate

spiral kindle
#

Do you guys know at all what might be happening

copper spoke
thin panther
#

we dont know, thats why we asking u guys to profile the problem

#

we need to know whats happening

spiral kindle
#

Is there anything else

#

What else you think we need to provide to help

alpine sage
spiral kindle
alpine sage
#
  1. See what lags your game
  2. Optimize it
thin panther
#

check those bluegreen spikes, theyre from runtime, if theres heavy usage then it will be the same when u run the app

spiral kindle
#

We don't know what lags it, thats the thing

#

We think the leaves, but what about the leaves

thin panther
#

once u on the spike, expand all the usage on the hierachy, we need full detail on the heaviest usage

copper spoke
#

Dude its all this

alpine sage
copper spoke
alpine sage
#

I would use the Frame Debugger to see how your rendering is executed

spiral kindle
#

We'll send an ss

#

would going into a group gc be better for this

copper spoke
spiral kindle
#

were you talking about the array clear

alpine sage
#

Maybe take a moment to learn how the Frame debugger and Profiler works

spiral kindle
#

we are very confused, would you guys be fine with going into a gc

alpine sage
spiral kindle
#

We do not know or understand why it is lagging

spiral kindle
#

We are just confused trying to solve a problem

alpine sage
alpine sage
spiral kindle
#

He doesn't use it, mostly the profiler from what i've been told and currently being told

#

We know what's causing the problem its the leaves, but we don't know what about the leaves, that's what we've been asking

#

We don't know what about the leaves

thin panther
#

no matter how u guys ask, my answer will always be:

the only way for u guys to work things out can only be inspecting on those spikes, if theres 100 spikes, inspect 30-40 of them, and find out what is constantly causing problems, if u found out it was the GC.Alloc appearing on most of the spikes, it was the GC alloc, and next step is to further inspect it

how u further inspect it? maybe frame debugger

#

were not the gods or ur pc, we dont know whats the problem behind, thats why were asking for the profiling

alpine sage
#

You can see GC alloc sources in the profiler timeline view, with deep profiling and GC call stacks

spiral kindle
#

We knows its the leaves as stated when we first made the inquiry, but we don't know what about the leaves

#

When we remove them no frame lag, when they are there frame lag

alpine sage
spiral kindle
#

Wouldn't it be the leaves

copper spoke
spiral kindle
#

Even without alpha clipping, it still frame drops

thin panther
#

thats not going to tell us anything, we need to see the profiler

#

how the leave behaves in runtime? hows the rendering going

#

those are in frame debugger or profiler

spiral kindle
copper spoke
#

this is the leaves being rendered

thin panther
#

im not specialized on computer graphics, what ur encountering(if its the leaf) is something related to this aspect

what i can only tell u is frame debugger is the right way to do

because if the leaves having a problem during runtime, if it causing the lags, it should belong to rendering , and frame debugger is the key to see how the rendering goes