-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Big refactor #4
Open
Schuwi
wants to merge
26
commits into
antonok-edm:master
Choose a base branch
from
Schuwi:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Big refactor #4
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
caused by missing cargo check run
- Use created subview instead of parent NSView as RawWindowHandle - Refactor internal interface to remove forced split between EventSource and EditorWindow MacOS works fine now, Windows and Linux won't compile; need the refactor
Fixes Windows compile but Linux still won't compile
Everything should work fine now
- Run cargo fmt
caused by missing cargo check run
- Use created subview instead of parent NSView as RawWindowHandle - Refactor internal interface to remove forced split between EventSource and EditorWindow MacOS works fine now, Windows and Linux won't compile; need the refactor
Fixes Windows compile but Linux still won't compile
Everything should work fine now
- Run cargo fmt
and run cargo fmt
- Update raw-window-handle to 0.4 - Add changelog - Update README - Bump version to 0.3.0 Additionally: fix winapi features
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I forked this project some time ago because it seemed quite dead but I liked the premise.
Now that some life has returned and I got my fork into a good condition I wanted to open the discussion on whether (some of) these changes should be merged.
My overarching goal was to make the code more robust.
I tried to check and document the unsafe code, verified the platform implementations with each platform's documentation and added graceful error handling.
The biggest and potentially most controversial API change is probably the merging of
EventSource
andEditorWindow
into onlyEditorWindow
. I did not understand the original motivation to separate them. In my fork of ampli-Fe I usedArc<EditorWindow>
and everything worked out fine.I tested the changes using the ampli-Fe fork in REAPER on Debian, Windows and macOS. Windows using DX12 has a weird graphical issue but I would imagine that's down to something with the update to wgpu 0.12, will double check that and create a separate issue. The original macOS implementation did not work in REAPER, as the mouse input and rendered output were misaligned. Returning the subview instead of the parent NSView as RawWindowHandle fixed this.
That's about the gist of it. I'd be interested to hear your thoughts on this.
I'll have to cleanup my git log a bit, all those duplicate commits...
Edit: formatting