Hi I have a monitoring app, that will take input video from uvc and process it using Metal, and eventually get a MTLTexture.
The problem I'm facing is I have to convert MTLTexture to CGImage then call TextureResource.replace, which is super slow. Metal processing speed is same as input frame rate(50pfs), but   MTLTexture -> CGImage -> TextureResource only got 7fps...
Is there any way I can make it faster?
                    
                  
                
              
                
              
              
                
                Topic:
                  
	
		Spatial Computing
  	
                
                
                SubTopic:
                  
                    
	
		General
		
  	
                  
                
              
              
                Tags:
              
              
  
  
    
      
      
      
        
          
            Media Player
          
        
        
      
      
    
      
      
      
        
          
            Frameworks
          
        
        
      
      
    
      
      
      
        
          
            Media Accessibility
          
        
        
      
      
    
      
      
      
        
          
            Core Media