Skip to content
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

macOS Mojave issues #430

Closed
seankarol opened this issue Sep 25, 2018 · 11 comments
Closed

macOS Mojave issues #430

seankarol opened this issue Sep 25, 2018 · 11 comments

Comments

@seankarol
Copy link

seankarol commented Sep 25, 2018

Hello Mark,

I just updated to macOS Mojave that came out yesterday and seem to be experiencing some issues:

  • vsync doesn't seem to work,
  • resizing the window doesn't resize the viewport

It’s also been reported that mojo3d is broken:
http://monkeycoder.co.nz/forums/topic/macos-mojave-black-screen/#post-15465

@DoctorWhoof
Copy link

DoctorWhoof commented Sep 27, 2018

Confirmed here. There's also a huge delay between compiling and actually displaying something in the mojo3d tests.

@DoctorWhoof
Copy link

Recent updates in dev branch seem to have fixed all problems for me. Thanks Mark!

@seankarol
Copy link
Author

I’m still experiencing odd window resizing issues as can seem by the bananas/viewlayout demo. Resizing the window appears to causes the virtual resolution to occupy the bottom left of the window.

@arpie42
Copy link

arpie42 commented Oct 2, 2018

The 'Experimental fix for Mojave vsync not working.' seems to have broken things on linux. I've just done a git pull and rebuildall2go and it is failing to build mojo. In particular, the latest commit pulls in CoreVideo/CoreVideo.h which doesn't exist in linux afaik. There also seems to be some objectiveC being compiled that didn't exist before... which I presume shouldn't happen on linux?

@DoctorWhoof
Copy link

DoctorWhoof commented Oct 2, 2018

That "CoreVideo.h" error also happens when compiling for Emscripten in MacOS, but doesn't show up when compiling for Desktop.

I've seen the resizing window bug in macOS, but couldn't reproduce it, unfortunately.

@seankarol
Copy link
Author

seankarol commented Oct 3, 2018

@DoctorWhoof What Mac are you using?

... after some troubleshooting ...

If I create the window with WindowFlags.HighDPI it works on the Retina display and fine on the non-retina. So I am guessing that I can just default on MacOS to create window in HighDPI for now, until a proper solution is baked into mojo.

@DoctorWhoof
Copy link

I'm on a 2015 MacBook Pro laptop.

With the extra info you provided, I was able to reproduce the "lower left corner" view problem: It works fine with WindowFlags.HighDPI, but if you turn it off, you get the issue when scaling or moving the window.

@DoctorWhoof
Copy link

Adding something like:

_camera.View = Self

In the window's OnRender method seems to fix the problem.

@DoctorWhoof
Copy link

Oops, that only works in 3D... can't figure out how to make the issue go away in 2D (non HiDPI). 😢

@DoctorWhoof
Copy link

Seems to work in latest dev branch, yay! Now the drawing behaves correctly with or without HiDPI. I can't see anything wrong with Vsync either. Close issue?

Thanks Mark.

@D-a-n-i-l-o
Copy link
Contributor

Yes, looks like it's working now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants