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] [Arm] [SDL HW] Graphics issue with animations and mouse movement #377

Closed
shinra-electric opened this issue Mar 20, 2023 · 9 comments
Assignees

Comments

@shinra-electric
Copy link
Contributor

shinra-electric commented Mar 20, 2023

I built OpenDune for Arm on macOS Ventura, and there are graphics issues.

During the intro, garbage is shown around the animation:

Screenshot 2023-03-20 at 15 56 42

This also manifests around animations (such as speaking characters when you're choosing a house):
Screenshot 2023-03-20 at 16 24 57

And also around the mouse pointer, but only when moving (I was moving the mouse fast just to illustrate):
Screenshot 2023-03-20 at 16 06 27

@miniupnp
Copy link
Contributor

miniupnp commented Mar 21, 2023

it may be an issue with SDL ?

@shinra-electric
Copy link
Contributor Author

If it helps, here are the terminal outputs after building and running:

OpenDune_build.txt
OpenDune_running.txt

@miniupnp
Copy link
Contributor

miniupnp commented Mar 2, 2024

@shinra-electric does the problem persists with the latest SDL2 version ?

@shinra-electric
Copy link
Contributor Author

shinra-electric commented Mar 3, 2024

I just made a fresh build, and yes the issue is still there:

Screenshot 2024-03-03 at 11 09 10

@miniupnp
Copy link
Contributor

miniupnp commented Mar 4, 2024

without reproducing it is difficult to understand what happens.

@dalanmiller
Copy link

Also experiencing this on my M1 Max

@shinra-electric
Copy link
Contributor Author

After the above comment I tried it on an old Intel Mac, and it works fine.

So this issue seems to be with Arm64 Macs only.

@binglongx
Copy link

I am not able to create a branch (so no PR) here, but this is a fix that works on my Mac with Apple Silicon M1, see attached git diff file.

The change basically allows configuring opendune to run with renderer software fallback. In M1 Macs, using software fallback for renderer overcomes the messed up graphics.

To take effect, add to opendune.ini:

[opendune]
renderer_software_fallback=1

Issue377.patch

@miniupnp miniupnp self-assigned this May 7, 2024
@shinra-electric shinra-electric changed the title [macOS] [Arm] Graphics issue with animations and mouse movement [macOS] [Arm] [SDL HW] Graphics issue with animations and mouse movement May 7, 2024
@miniupnp
Copy link
Contributor

miniupnp commented May 8, 2024

fixed with 8f5e52e

@miniupnp miniupnp closed this as completed May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants