Comments (6)
We have thought about this.
The main obstacle is that (by design) there is no concept of frames as individual entities, just a single surface with changing content. There is no way to tie metadata to a single frame because the content can change at any time. This might still be useful for less transient information.
from syphon-framework.
to continue the discussion from #82:
This is what spout says about its own implementation: frameBufferSharing
But I understand now it might be tricky to implement it in a water thight manner.
from syphon-framework.
@maybites we specifically don't want to block server and client processes in the way Spout does.
from syphon-framework.
To chime in, I think this can be revisited if we decide to tackle internally pooling IOSurfaces, which would allow us to vend unique surfaces per frame (though they would have re-used addresses), and potentially associate user low cost user data dictionary along with it. I dont want to promise anything we can't deliver, but its worth mentioning.
from syphon-framework.
for reference :
/* These calls let you attach property list types to a IOSurface buffer. These calls are
expensive (they essentially must serialize the data into the kernel) and thus should be avoided whenever
possible. Note: These functions can not be used to change the underlying surface properties. */
- (void)setAttachment:(id)anObject forKey:(NSString *)key;
- (nullable id)attachmentForKey:(NSString *)key;
- (void)removeAttachmentForKey:(NSString *)key;
- (void)setAllAttachments:(NSDictionary<NSString *, id> *)dict;
- (nullable NSDictionary<NSString *, id> *)allAttachments;
- (void)removeAllAttachments;
from syphon-framework.
we specifically don't want to block server and client processes in the way Spout does.
Oh, I get that. I wouldn't advocate it, I just added that link for reference.
But I am glad to hear you considering this feature seriously and see the potential benefit of it. A low cost user data dictionary would be the way to go. Thats what I am doing with spout, serialized to and from a byte buffer.
from syphon-framework.
Related Issues (20)
- IOSurface Syphon HOT 3
- UnrealEngine 5.1 HOT 1
- Adobe Character Animator just took off Syphon!!! Please make all efforts to be on Character Animator again! HOT 12
- Syphon for Blender issue HOT 7
- Frame Meta Data HOT 1
- Use ARC HOT 1
- Per-API framework builds HOT 1
- Use a single SyphonServerRendererMetal per MTLDevice
- Possibly allow the host to avoid server Metal pipeline state if they will always blit
- Metal drawFrame: API
- Remove support for custom class names
- Update Xcode project to use the built-in DocC for documentation
- hasNewFrame not working properly HOT 1
- Static library export HOT 8
- Available documentation without building ? HOT 3
- SyphonServerDirectory sharedDirectory servers is always empty HOT 7
- Frames received by client only contain a row-vector of pixels. HOT 2
- Current state of Metal support HOT 3
- Updated universal Syphon.framework for intel+arm64 ? HOT 2
- Can't manage to integrate in JUCE : Blank texture HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from syphon-framework.