When I create more than 1000 Entities the frame latency increases, but the CPU/GPU are not fully loaded #7838
Replies: 5 comments
-
Can you please share a repro case? Filament is multi threaded and vectorized for everything related to sorting and culling so you shouldn't see a lot of CPU usage necessarily. |
Beta Was this translation helpful? Give feedback.
-
Give me some time and I try to reproduce with `FilamentApp`
…________________________________
发件人: Romain Guy ***@***.***>
发送时间: 2024年4月7日 15:10
收件人: google/filament ***@***.***>
抄送: Jing Yanming ***@***.***>; Author ***@***.***>
主题: Re: [google/filament] When I create more than 1000 Entities the frame latency increases, but the CPU/GPU are not fully loaded (Issue #7743)
Can you please share a repro case? Filament is multi threaded and vectorized for everything related to sorting and culling so you shouldn't see a lot of CPU usage necessarily.
―
Reply to this email directly, view it on GitHub<#7743 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AAB5E2HOATEJLG4IBUE4X33Y4DWQBAVCNFSM6AAAAABF3BVPX2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANBRGM2DKMBUGQ>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
I'm able to reproduce very similar behaviour with the GLTF viewer that ships with Filament. |
Beta Was this translation helpful? Give feedback.
-
@Nolram12345 Your GPU is busy at 80%. I don't know how that's measured but if the scene is fragment shader limited that's what I would expect. The fact the CPU is at low usage is a good thing? |
Beta Was this translation helpful? Give feedback.
-
You may be right with fragment shader fillrate being a bottleneck, I'll profile that further. Do you have any suggestions for test scenes that would allow me to check how well Filament is properly able to make use of given graphics & CPU capacity? |
Beta Was this translation helpful? Give feedback.
-
Is your feature request related to a problem? Please describe.
I use the model file
filament\assets\models\torus
. The strange color is because the material lacks the color parameter.I think filament can run at least one of the cpu or gpu, but this is the running result. It seems that the cpu core is not fully loaded.
And the gpu uses 1%??
You will see a huge increase in skipframe because renderer->beginFrame(swapChain) returns false:
Describe the solution you'd like
I think filament can at least keep one of the cpu or gpu fully loaded.
Describe alternatives you've considered
When I use raw OpenGL API to render 10,000 such objects, I can run 25% GPU and 100% CPU.
OS and backend
NVIDIA GeForce GTX 1080
Windows 11 22H2 (1000.19041.1000.0)
FEngine (64 bits) created at 0000028B83AC8F80 (threading is enabled)
FEngine resolved backend: Vulkan
Vulkan device driver: NVIDIA 537.34
Selected physical device 'NVIDIA GeForce GTX 1080' from 1 physical devices. (vendor 0x10de, device 0x1b80, driver 0x86488000, api 1.3)
Backend feature level: 1
FEngine feature level: 1
Beta Was this translation helpful? Give feedback.
All reactions