Skip to content
This repository has been archived by the owner on Jan 24, 2020. It is now read-only.

Studio Electron top level #35

Merged
merged 31 commits into from
Jun 16, 2019
Merged

Studio Electron top level #35

merged 31 commits into from
Jun 16, 2019

Conversation

avaer
Copy link
Member

@avaer avaer commented Jun 11, 2019

This PR breaks the Studio render loop into two windows: the UI presented by Electron, and the 3D rendered by Exokit engine.

The Exokit engine window is aligned so that it appears to be part of the Electron window, although it is not -- the composition uses OS transparency to fake the effect.

The main reason for doing this is to make both Exokit rendering, and the HMTL UI rendering both fast regardless of the screen resolution used -- a 4K pixel transfer in either direction is too slow to not drop frames.

@avaer
Copy link
Member Author

avaer commented Jun 13, 2019

The current bug here is that resizing the Exokit window also resizes the Electron window, which results in a recursion to window of size 0 x 0.

Edit: now the bug is that the engine window size is too small, and not correctly aligned: most likely this is a devicePixelRatio bug.

@avaer
Copy link
Member Author

avaer commented Jun 15, 2019

There's a few more bugs here, but the core functionality of super fast HTML + Exokit composition done by the OS should be working. There should also be no greenscreen bugs anymore.

@avaer avaer merged commit e539ffe into master Jun 16, 2019
@avaer avaer deleted the alpha-compose branch June 16, 2019 06:07
avaer added a commit that referenced this pull request Aug 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant