filament icon indicating copy to clipboard operation
filament copied to clipboard

a strange phenomenon when rendering

Open August1996 opened this issue 3 years ago • 8 comments

Describe the bug i load 32 models and play animation, the framerate is very low. but after coming from background, it works well.

you can refer to this video video

source code filament-multi-model

August1996 avatar Apr 15 '22 11:04 August1996

i found that this method cost much time to complete. image

and i print the name of node is "Structure Pass".

so there may be some problems in this code

image

August1996 avatar Apr 15 '22 11:04 August1996

Thoughts: could be a clocking issue, or a driver issue.

romainguy avatar Apr 15 '22 15:04 romainguy

What platform is this on?

pixelflinger avatar Apr 16 '22 04:04 pixelflinger

What platform is this on?

@pixelflinger my phone is android 10 xiaomi 9

may be you can run the project filament-multi-model, you can increase or decrease the number of model until the framerate declines. and then you switch to background for seconds, after coming from background, the framerate will be normal.

August1996 avatar Apr 16 '22 05:04 August1996

@August1996 have you observed this behavior on the emulator?

pixelflinger avatar Apr 19 '22 03:04 pixelflinger

@August1996 have you observed this behavior on the emulator?

I haven't tried it on the emulator, I'm using a physical machine.

August1996 avatar Apr 19 '22 03:04 August1996

how did you determine that "Structure Pass" was taking a lot of time? What tool did you use?

pixelflinger avatar Apr 19 '22 03:04 pixelflinger

how did you determine that "Structure Pass" was taking a lot of time? What tool did you use?

i add some code to calculate and then compile the sources.

August1996 avatar Apr 19 '22 03:04 August1996

we never were able to observe this behavior. Re-open if you still see it.

pixelflinger avatar Aug 15 '22 23:08 pixelflinger