Custom SceneView DrawMode

The beautiful scene is from the asset store package:
RPG Medieval Kingdom Kit by BEFFIO

Screen Shot 2018-06-28 at 21.43.05

Download : https://drive.google.com/open?id=1hloorB11hPcIXIIKBIRzqvon9mpmbYPK
If you are looking for doing it in custom SRP, please visit my github

How to use :
Just add your shaders and names to the CustomDrawModeAsset

Thanks Vlad Neykov for helping me in making this little tool
( This is one of the tools I made during #UnityHackweek )

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

[Custom SRP] How to use Unity features?

Update:

If you are using 2019.1+, you might notice there is a big change to the SRP APIs.
I’ve created a new repository and you can grab here. Much cleaner and minimal.

https://github.com/cinight/CustomSRP

 


 

May-14-2018 gif

Screen Shot 2018-06-02 at 22.16.24

SRPFlowScreen Shot 2018-05-12 at 18.52.43

(My playground pipeline)

Here lists out exact what codes enable the Unity feature when making our custom SRP.

*Note that my codes may not be perfectly optimised, but the concept itself won’t change.
(!) Alert: Below information might be outdated. I stopped updating this note after 2018.x releases.

Indicators:
icon_script In pipeline code
icon_shader In shader code
✅ Doesn’t need to specifically care about it in codes. Write the codes as usual.

Continue reading “[Custom SRP] How to use Unity features?”