BOTLANNER / godot-gif

GDExtension for Godot 4+ to load GIF files as AnimatedTexture and/or SpriteFrames.
https://godotengine.org/asset-library/asset/2255
MIT License
46 stars 4 forks source link

Demo project initial load doesn't complete (Next load works quickly) #5

Open BOTLANNER opened 11 months ago

BOTLANNER commented 11 months ago

I hope I can provide some info: On my windows machine large-sized gifs always took a while to import. Small sized files always imported quickly. Playing the game (the play button) took a bit to launch if I was using a large local file. Using an online resource loaded almost instantly though.

Using my own project:

  • 85kb large gif took around a second to import.
  • 7.3 mb large gif took around 2 minutes to import. Around 60 seconds to load said gif in the editor.

Using Godot-Gif demo project:

  • Waiting 10 minutes and still didn't finish importing. (Downloaded it and tried to open directly)
  • Crashing godot (closing it via task manager) and reopening your demo made the files "finish" importing and project opened in a few seconds

Hopefully this gives you hints as to what could be happening.

Originally posted by @Ketei in https://github.com/BOTLANNER/godot-gif/issues/3#issuecomment-1826932115

BOTLANNER commented 11 months ago

For context:

I saw that the default demo was not working because of an incorrect path in the GDExtension.

However, now it's also failing to import the files seems like. It's just stuck loading the demo project, however the demo can be run from the command line (showing the runtime loading capability).

Any ideas? Is this also a slow import on your machine?

Screenshot 2023-11-26 at 14 25 34

Godot version: 4.1.3 Operating system: Mac OS

Originally posted by @tavurth in https://github.com/BOTLANNER/godot-gif/pull/3