Reply To: content of NSView disappear

Home Forums Syphon Syphon Development – Developer content of NSView disappear Reply To: content of NSView disappear



There are a few problems with your approach – more than I am going to detail, as you should start with a clear method in mind: what is the final intention of your app?

If, as this code tries to do, your intention is to display an image from a file on disk and also output that image via Syphon, then you could consider minimising the amount of rendering to pixel buffers and texture uploads which occur. A good strategy would be to load the image to a buffer and then load that buffer to a texture once, and use that texture for drawing in your view and publishing to Syphon (assuming you are comfortable enough with OpenGL).

Alternatively, something like OpenFrameworks might simplify the task for you considerably.