google / filament

Filament is a real-time physically based rendering engine for Android, iOS, Windows, Linux, macOS, and WebGL2
https://google.github.io/filament/
Apache License 2.0
17.7k stars 1.87k forks source link

don't use thread affinity for the backend thread #7752

Closed pixelflinger closed 5 months ago

pixelflinger commented 5 months ago

Originally we did this because we wanted to run on a big core on android. However setting the thread affinity in this way is fragile, we are not guaranteed to be on a big core, and we don't even know if some thread is pinned to that core already; which was the case with some GL drivers. This can also cause scheduling problems with other threads.

We just remove this logic entirely for now, and we'll figure out something better later to run on a big core.

Fixes #7748 BUGS=[333949404]