-
Notifications
You must be signed in to change notification settings - Fork 198
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
Render chunks with tilemap Entity generation > 0 are not visible #450
Comments
Still not sure what's going on here, but I have a few observations:
|
Not sure if related, but I noticed that my layer 0 in a multi-layer Tiled map won't render if I have some combinations of totally unrelated despawn_recursive's happen prior and when I examine the map the texture handle on that first layer seems borked. I will try and produce a minimal example. It's kind of in that territory of "might be related, but might be something my particular game's code is doing differently." Without any other changes, it worked fine prior to 0.11. |
The tilemap entity generation is being dropped and the entity is later reconstructed without it. I haven't fully untangled this, but this seems very likely to be the problem. Tilemaps that work as expected are the ones that coincidentally have a generation of the default We can likely use to_bits and from_bits for this sort of thing at the cost of 32 bits. |
bisected to 7f5113a
I remember noticing this here: #428 (comment) but can't recall if there was a fix that maybe didn't survive a merge or something.
Repro
cargo run --example chunking
Hold the
w
key. Newly spawned chunks after the initial setup mostly do not display.The text was updated successfully, but these errors were encountered: