In your manifest file all you need to do is add viewProcessAffinityStrategy
just inside the platform section of your manifest file:
{
"runtime": {
"arguments": "--inspect",
"version": "stable"
},
"platform": {
"uuid": "This_Platform_App",
"applicationIcon": "https://openfin.github.io/golden-prototype/favicon.ico",
"viewProcessAffinityStrategy": "same",
"defaultWindowOptions": {
...
Setting it to "same" will ensure that all views from the same origin are rendered by a single renderer process. Alternatively, if you choose "different," each view will have its own dedicated renderer process.
The "viewProcessAffinityStrategy" offers a comprehensive option, where supplying each view with a "processAffinity" option allows more selective grouping of views based on the specified names. For example, assigning "processAffinity":"PA1" to views from the same origin will render them all in the same renderer process, providing finer control over the grouping.
Further information available here: https://developers.openfin.co/of-docs/docs/container-overview#process-affinity
Comments
0 comments
Please sign in to leave a comment.