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

Cleaning or updating Tilemap is not working without running renderGroup.onChildUpdate PIXI 8 #164

Open
ajur opened this issue May 8, 2024 · 1 comment

Comments

@ajur
Copy link

ajur commented May 8, 2024

Hi,

There are some issues with Tilemap.clean() and also with adding new tiles.
At least for me, on MacOs, Chrome or Safari (albeit there are some differences how this breaks).

At least for some time you can check my project with the issues.

  • clean seems to not work, until you place a new tile. At least on chrome.
    • check 'clear tilemap' buttons
  • effect of both clean, and adding new tiles are not visible until calling renderGroup.onChildUpdate (on tilemap or parent). Or e.g. changing position, witch triggers this call.
    • check 'update tilemap' buttons

Oh, also, thats for WebGPU.
When running WebGL version, calling clean without onChildUpdate ends with this nice error:

[.WebGL-0x10800c4af00] GL_INVALID_OPERATION: Vertex buffer is not big enough for the draw call
WebGL: too many errors, no more errors will be reported to the console for this context.

(run WebGL version here)

You can check the code for this game on gh

@ivanpopelyshev
Copy link
Collaborator

Oh, thank you!

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

2 participants