3D scene need Linear but UI need Gamma

update: including UniversalRP (URP) workaround at bottom!

Having this problem?
https://forum.unity.com/threads/gamma-colors-for-ui-and-linear-for-scene.529923/

20190530_problem.jpg

Looking for a way to make only the UI matches to what is designed in Photoshop? Don’t want artists to change any workflow because you are in the middle of development? Try this.

 

Continue reading “3D scene need Linear but UI need Gamma”

Threading in Unity

Single thread / direct -force-gfx-direct

  • Main thread
    • device
Multithread / client+worker pair -force-gfx-mt
default, and if GraphicsJobs checkbox is off

  • Main thread
    • device
    • client
  • Render thread
    • device
    • worker

Graphics Jobs / legacy -force-gfx-jobs legacy

Cpu command – run in linear
Render command – run in parallel

  • Main thread
  • Render thread
  • Job thread
  • client on each job thread
Graphics Jobs / native -force-gfx-jobs native
if GraphicsJobs checkbox is on.
if platform / API doesn’t support native then will fallback to legacy
only in player + Vulkan / DX12 / Metal

Cpu command – run in parallel
Render command – run in parallel

  • Main thread
    • device
    • client
  • Render thread
    • device
    • worker
  • Task execute
  • Job thread
    • N render thread