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

examples/skipdraw: wrong rendering result with SetScreenClearedEveryFrame(false) #2952

Open
1 of 11 tasks
hajimehoshi opened this issue Apr 6, 2024 · 4 comments
Open
1 of 11 tasks

Comments

@hajimehoshi
Copy link
Owner

hajimehoshi commented Apr 6, 2024

Ebitengine Version

Both v2.6.7 and v2.7.0

Operating System

  • Windows
  • macOS
  • Linux
  • FreeBSD
  • OpenBSD
  • Android
  • iOS
  • Nintendo Switch
  • PlayStation 5
  • Xbox
  • Web Browsers

Go Version (go version)

go version go1.22.0 linux/arm64

What steps will reproduce the problem?

Run github.com/crgimenes/neko commit: eb5fed9b4f321d7914da25d03e88c0710d423c02

What is the expected result?

The rendering result is correct

neko.mp4

What happens instead?

The rendering result is not correct

Anything else you feel useful to add?

This issue is forked from #2951

After removing SetScreenClearedEveryFrame(false) and fixing the code to always render the sprite, the issue was fixed.

@hajimehoshi hajimehoshi added the bug label Apr 6, 2024
@hajimehoshi hajimehoshi added this to the v2.7.1 milestone Apr 6, 2024
@hajimehoshi
Copy link
Owner Author

hajimehoshi commented Apr 6, 2024

This could be reproduced with examples/skipdraw.

skipdraw.mp4

@hajimehoshi hajimehoshi changed the title wrong rendering result with SetScreenClearedEveryFrame(false) examples/skipdraw: wrong rendering result with SetScreenClearedEveryFrame(false) Apr 6, 2024
@hajimehoshi
Copy link
Owner Author

This doesn't seem a fixable issue as vsync doesn't work in my environment

       _,met$$$$$gg.          parallels@debian-gnu-linux-12 
    ,g$$$$$$$$$$$$$$$P.       ----------------------------- 
  ,g$$P"     """Y$$.".        OS: Debian GNU/Linux 12 (bookworm) aarch64 
 ,$$P'              `$$$.     Host: Parallels ARM Virtual Machine 0.1 
',$$P       ,ggs.     `$$b:   Kernel: 6.1.0-9-arm64 
`d$$'     ,$P"'   .    $$$    Uptime: 5 hours, 6 mins 
 $$P      d$'     ,    $$P    Packages: 1905 (dpkg) 
 $$:      $$.   -    ,d$$'    Shell: bash 5.2.15 
 $$;      Y$b._   _,d$P'      Resolution: 1800x1126 
 Y$$.    `.`"Y$$$$P"'         DE: Cinnamon 5.6.8 
 `$$b      "-.__              WM: Mutter (Muffin) 
  `Y$$                        WM Theme: cinnamon (Default) 
   `Y$$.                      Theme: Adwaita [GTK2/3] 
     `$$b.                    Icons: gnome [GTK2/3] 
       `Y$$b.                 Terminal: gnome-terminal 
          `"Y$b._             CPU: (2) 
              `"""            GPU: 00:0a.0 Red Hat, Inc. Virtio 1.0 GPU 
                              Memory: 1081MiB / 1978MiB 

@hajimehoshi hajimehoshi removed this from the v2.7.1 milestone Apr 6, 2024
@SolsticeSpectrum
Copy link

@hajimehoshi If you send me the example skipdraw code, I can test it on my machine. Idk if that would help in any way.

@hajimehoshi
Copy link
Owner Author

Thanks. I need to test this with a proper Linux machine rather than a Parallels VM first.

@hajimehoshi hajimehoshi added this to the v2.8.0 milestone Apr 6, 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

2 participants