#Cost of dynamic states?

8 messages · Page 1 of 1 (latest)

distant python
#

Still pretty new to stuff in Vulkan. Adding Dynamic states to some pipelines for viewport & scissor so I don't need to rebuild everything on window resize and can reuse the same pipelines on render targets.

My question is what is the cost for making different things dynamic? It's not clear to me what the downsides are. I assume there are some since it is optional.

weak kayak
#

Depends on the property that's dynamic, as well as the target device

#

For mobile some dynamic states will be more expensive that on desktop for example

#

Generally viewport and scissor state is cheap/free to set as dynamic though

misty pollen
#

It Depends. (tm).
Viewport and scissor should be free on desktop, maybe not on mobile.

vocal oak
#

luckily, resizing should not really be needed on mobile anyway (since users normally can't resize windows)

misty pollen
#

They can rotate at a whim though

dry jolt
#

Not only is it free, it's recommended since resizing becomes a lot more immediate