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

Animated Tilemap Tiles will occasionally flicker black #82539

Open
InfiniteDistraction opened this issue Sep 29, 2023 · 4 comments
Open

Animated Tilemap Tiles will occasionally flicker black #82539

InfiniteDistraction opened this issue Sep 29, 2023 · 4 comments

Comments

@InfiniteDistraction
Copy link

Godot version

4.0 Stable

System information

Windows 10 - Intel(R) Core(TM) i7-6800K CPU @ 3.40GHz - RogStrix 2080 Super

Issue description

I've video recorded the issue here: https://www.youtube.com/watch?v=RHE1Y0t5pw8
(It had to be recorded with my phone because using screen recording programs seems to stop the bug)

Issue:
About 5% of the time launching the game (via the engine) animated tileset tiles will flicker black.

So far I've learned:

  • Using a screen recording program or restarting the game stops the bug
  • The bug is not dependent on player input
  • The bug only occurs with animated tileset tiles
  • The tileset tiles in question are only animated (there are no other special settings or data on them)
  • The flicker does not coincide with any specific frame of the animation
  • The bug also does not seem to be linked to any of my other game systems' timings (the project is still very small)

Steps to reproduce

I don't know if this will reproduce the issue for other people, as it's not 100% and is really quite unpredictable, but I:

1 created and imported a tileset sheet with animation frames
2 set up the tileset to animate using the frames in the spritesheet
3 placed the animated tiles on the map
4 load the game and watch the tiles
5 repeat step 4

Minimal reproduction project

It says the file is too big

@InfiniteDistraction
Copy link
Author

InfiniteDistraction commented Sep 29, 2023

Water

^ I've attached there the tile spritesheet I am using, since it won't let me upload the project.
Note that only the tiles with contents are included in the animation (the empty ones on the top right are not)

The sand tiles which also flicker black on the same timing, are also animated with the same number of frames, but on a different spritesheet on the same tilemap

@rakkarage
Copy link
Contributor

#82286
maybe related/same

@InfiniteDistraction
Copy link
Author

#82286 maybe related/same

Might be! I have a a purple flat image behind these tiles, and the flicker happens on random seeming frames, but maybe it's the same culprit. Happy someone's looking into it :)

@kleonc
Copy link
Member

kleonc commented Oct 4, 2023

@InfiniteDistraction Please test if you can reproduce it in 4.2.dev6 version which includes the fix for #82286 (be sure to backup your project when trying different version).

If it's already fixed in there then (if you'd want) you could also test 4.2.dev5 for confirming that's indeed a duplicate of #82286 (which would be the case if the bug is present in 4.2.dev5 but not in 4.2.dev6).


Minimal reproduction project

It says the file is too big

BTW be sure to not include .godot folder in the archive / .zip file. Just in case you haven't noticed this note when opening the issue:
bvtzDRS

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

3 participants