FXGL icon indicating copy to clipboard operation
FXGL copied to clipboard

Creating more than three layers in Tiled Map Editor results to a laggy behaviour

Open Smoll05 opened this issue 10 months ago • 1 comments

Describe the bug Discovered a bug where if you have more than three layers on a .tmx file, the game will be very laggy, making it harder to play the game.

To Reproduce Steps to reproduce the behavior:

  1. Create a .tmx file using Tiled Map Editor
  2. Set the map using FXGL.setLevelFromMap
  3. Play the game
  4. Laggy behaviour

Expected behavior Laggy gameplay when having more than three layers on the Tiled Map Editor.

Runtime info(please complete the following information):

  • OS: Windows 11
  • Version: 25+dev-SNAPSHOT

Additional context / possible fixes Do not create more than three layers in Tiled Map Editor.

Smoll05 avatar May 10 '25 14:05 Smoll05

Hi, thanks for this. Can you send me an example .tmx with runnable code for reproduction purposes, thank you.

AlmasB avatar May 10 '25 16:05 AlmasB