You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 26, 2022. It is now read-only.
Currently, the engine delegate is doing all of the work around collecting related information about PC content, including all imported style sheets (even of dependencies). This is expensive, not to mention this information is also emitted over RPC.
To reduce some of the cost of this, it makes sense to have a consumer of emitted PC event data that can be used to aggregate this information for things like renderers. For example:
constdelegate=createEngineDelegate();// ... somewhere var events is wired up ...constconsumer=createEngineEventConsumer(events);constframes=renderFrames(consumer.getContent("file.pc"));for(constframeofframes){document.body.appendChild(frame);}// Consumer handles all patching of PC content, and emits changesconsumer.onChange((uri,currContent,prevContent,event)=>{patchFrames(frames,currContent,prevCount);});
the editor client PC document should ever to a shared consumer that takes these events, then updates its own content when it changes.
Considerations
This this affect CRDTs (immediate hunch is no).
The text was updated successfully, but these errors were encountered:
Also need to be cognizant about consumers that are added after everything evaluates. Need to have some way of populating that data. One possibility is createEngineEventConsumer({ getAllData }) + feeding that through an adapter that works via RPC or in the same process as the engine delegate.
Currently, the engine delegate is doing all of the work around collecting related information about PC content, including all imported style sheets (even of dependencies). This is expensive, not to mention this information is also emitted over RPC.
To reduce some of the cost of this, it makes sense to have a consumer of emitted PC event data that can be used to aggregate this information for things like renderers. For example:
the editor client PC document should ever to a shared consumer that takes these events, then updates its own content when it changes.
Considerations
The text was updated successfully, but these errors were encountered: