#yes, it doesn't happen on build.. or if

1 messages · Page 1 of 1 (latest)

buoyant sorrel
#

i do believe it is the same spike

#

took me a minute to figure out the keypresses i needed to do to capture it.

#

Its taking me a minute to figure out how to debug this..
someone just suggested I do a deep profile + call stacks

#

but when I use deep profiler the frame rate is low enough as to not have the visible frame drop like im seeing here

#

at other times its my player loop

#

it appears that my code is .5% of the spike i keep seeing

#

or ~2%

twilit thicket
#

Why don't you expand it?

#

The numbers don't match though

buoyant sorrel
#

its the EditorBeforeUpdate.invoke

twilit thicket
#

In the graph you have like 100ms., but the hierarchy shows only 2-3ms

buoyant sorrel
#

NomNom just had me test a blank scene..

#

a completely empty scene also has the big ole spike

#

completely empty scene causing 149ms spike

#

has to be some asset i have

twilit thicket
#

I do t see the CPU timings

#

But if it's the editor loop, you'll need to profile in editor mode

buoyant sorrel
#

sorry it got cut off

twilit thicket
#

I mean in the hierarchy

buoyant sorrel
buoyant sorrel
twilit thicket
#

I don't really care about the graph. All the info you might need is in the hierarchy view

buoyant sorrel
#

profiling in edit mode is tricky to me

#

i'll figure it out after i play with it some more.. im trying to figure out the order of how i need to get it running

twilit thicket
#

You can toggle the record button to stop it from scrolling

buoyant sorrel
#

ohh lmao..

#

this is what was visible earlier.. but imma have to try again.. i got to reset my scene right quick..

#

i was asked if im stacking camera's as well.. which i am not

twilit thicket
buoyant sorrel
#

damn i suck at this

#

i think this is it

#

150ms spike w/ an empty scene

twilit thicket
# buoyant sorrel

Hmmm... Kinds looks like something that would only be called once during app load.

#

Or scene load I guess

#

Per camera

#

Unless you're rendering to a render texture

buoyant sorrel
#

i have one.. but not being used

#

does that matter?

twilit thicket
#

Have where? Is it referenced by a camera in a scene?

buoyant sorrel
#

wow.. its actually being used as a base map on a material

#

its in my project window.. (not in scene)

#

i think ur on to something

twilit thicket
#

Hmm... I don't think that's related. Since it's the editor loop, it's likely related to rendering the scene view.

buoyant sorrel
#

ya, ur right.. false hope lol

#

soo.. it is scene related..

#

especially since the build has no spikes

twilit thicket
# buoyant sorrel

Can you take a screenshot of your whole editor window when that happens?

buoyant sorrel
#

yes i can..

#

it actually happens without the game even running

twilit thicket
buoyant sorrel
#

does any of this info help?

twilit thicket
buoyant sorrel
#

yes like every couple of seconds or so

#

i use the blue timer to help me identify it

#

if my frame rate is lower. then the spike takes longer for it to become apparent.. which is also odd..

#

if i get the framerate down to 20-30 fps i dont even notice one

#

i noticed that when i was deep profiling

twilit thicket
# buoyant sorrel

Can you capture the info of a second spike like that? I assumed that the screenshot is from the first spike you encountered?

buoyant sorrel
#

yea ill try

twilit thicket
buoyant sorrel
#

i waited for the 3rd spike.. on an empty scene theres more spacing between them.

#

heres a version w/ the scene i was originally using

twilit thicket
# buoyant sorrel

It seems to be running a camera setup.
I've no clue why it would do that.
Perhaps the old camera is being destroyed for some reason?🤔

buoyant sorrel
#

i think im going to have to put this down for a minute. its taking longer than i anticipated and I have to cook diner..

But I appreciate you taking a look at it.. I know a lot more now (or atleast what to look for)
i'm going to pick back up on it when I can.. and now there's a thread so If i find out the issue or get any more details.. i'd be happy to share

#

im going to try to isolate just my stuff a bit more.. get rid of some third party assets i have in the project folder

twilit thicket
#

Actually the setup seems to be done on every frame. Can you check the same hierarchy on a frame without a spike?

buoyant sorrel
#

sure

#

then the other 30% is here

twilit thicket
#

Can you expand the setup here?

buoyant sorrel
twilit thicket
#

Hmm, so it creates a render target here too.

#

Can you expand it the same way on a spike?

buoyant sorrel
#

yessir

#

then the lower half where the .Setup part is

twilit thicket
#

Aah, the render target setup is not what was heavy!

buoyant sorrel
#

yea, sorry the way the Repaint parts are split in half had me confused

twilit thicket
#

Seems to be bloom post processing effect. It shouldn't be that slow regardless.
Can you disable bloom and confirm that the issue is gone?

#

Wait, does it mean that you had pp enabled in an empty scene too?

buoyant sorrel
#

no im back in my original scene..

#

but the other scene didn't have a volume

#

ur right.. ill try anyway

twilit thicket
#

In this case, either there are 2 separate problems, or the bloom hides the real issue.

buoyant sorrel
#

yea theres still a 151 ms spike w/o any PPFX

twilit thicket
# buoyant sorrel

Can you hide the game tab so that it doesn't render and see if the issue occurs?

buoyant sorrel
#

more than ever lol

#

i even toggled off the lighting in the scene view

twilit thicket
buoyant sorrel
#

no, i think its different now.. the time drops off before we get that far down the hiearchy now

#

ya the numbers are a little less now

#

ah, nvm i think they're pretty similar... the GC alloc dropped alot tho went from 40ish to 9

#

if anything, atleast im familiarizing myself with this profiler.

twilit thicket
# buoyant sorrel

That's weird the OnGUI itself is taking all that time. There must be something hiding from the profiler.

buoyant sorrel
#

ya, i agree ( i mean.. i dont know as much as u do about this stuff ).. but since the very beginning when i noticed this problem.. it seemed to not make any sense

#

and i wish i would have noticed it sooner.. theres no telling how long ago this has been happening.. and i never noticed it until i added a camera script

twilit thicket
#

Just to make sure, when you tested a new scene, was it in an empty project?

buoyant sorrel
#

no, it was the same project, just a blank scene w/ camera and light

twilit thicket
#

Okay, does that happen in an empty project then?

buoyant sorrel
#

no.. (i made a new empty scene earlier)

#

where as this scene my low fps is 0 - 10 fps

#

but that video i just sent was not URP.. b/c i thought maybe my version of Unity's URP has a bug

#

i can try a blank URP project using this exact version and report back..

#

but it'll take me a min