Syphon / Syphon-Framework

Syphon is a Mac OS X technology to allow applications to share video and still images with one another in realtime, instantly.
Other
456 stars 79 forks source link

Possibly allow the host to avoid server Metal pipeline state if they will always blit #86

Open bangnoise opened 1 year ago

bangnoise commented 1 year ago

SyphonMetalServer always creates a SyphonServerRendererMetal with associated pipeline state. This will never be used if the host only provides blittable textures. Although we could lazily initialise it, that would cause some delay to the first frame published.

Possibly add an option to be passed to the options dictionary which takes a MTLTextureDescriptor for textures the host intends to publish, and skip SyphonServerRendererMetal creation if the textures will be blittable.

The harm in this will be somewhat mitigated by #85.