McManning / Coherence

Blender viewport renderer using the Unity Engine
MIT License
30 stars 0 forks source link

Multiple viewports do not render correctly #1

Closed McManning closed 4 years ago

McManning commented 4 years ago
McManning commented 4 years ago

Fixed with the fix to #4. For the multiple viewports issue, the buffer node count is 1 and each viewport tried to write to the buffer every ViewportController.Update call - but the "first" always won so other viewports couldn't write.

I changed the behaviour to instead step through the list of viewports in SyncManager and ask each one in order for their RT each update. So there's definitely slowdown with the more viewports you have - and there should be some form of prioritization for the "active" viewport in Blender. But that's a future enhancement.