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

Flickering/Possible Sync issue when reusing index buffer on Metal #831

Open
oxue opened this issue Dec 8, 2023 · 0 comments
Open

Flickering/Possible Sync issue when reusing index buffer on Metal #831

oxue opened this issue Dec 8, 2023 · 0 comments

Comments

@oxue
Copy link

oxue commented Dec 8, 2023

Describe the bug
have 2 draw calls per frame
Reuse index buffer with differently "alignment" so go 012 123 for the first draw and 012345 for second draw call.

we see flickering on Metal but not on HTML5.

basically I thinkn index buffer is corrupted between the draw calls.

here is an example: https://github.com/oxue/kha_repro_1

To Reproduce
https://github.com/oxue/kha_repro_1

have 2 draw calls per frame
Reuse index buffer with differently "alignment" so go 012 123 for the first draw and 012345 for second draw call.

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
image
THAT smiley on the left should not be triangle.

Execution Environment:

  • Host system (where you compile your code): macosx
  • Target system (where you run your code): macosx
  • IDE used (if any): vscode
  • Kha revision: 23.8.0
  • Kha build output (Using Kha...):
  • Application output (if it runs):

Additional context
Add any other context about the problem here.

@RobDangerous RobDangerous transferred this issue from Kode/Kha Dec 8, 2023
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

1 participant