7 Comments
User's avatar
constlet's avatar

Glad they fixed it n IDE v2024.1100.0.625 Runtime v2024.1100.0.651, great job. Since they fixed the underlying issue, is there any more performance we can squeeze out of it now?

Expand full comment
YellowAfterlife's avatar

You can check the test project on GitHub for an example of loading a GIF over course of multiple frames

https://github.com/YAL-GameMaker/sprite_add_gif

I also made a C# GIF loader for test, but it wasn't visibly faster than the GML loader on YYC

https://github.com/YAL-GameMaker/sprite_add_gif_cs

Expand full comment
xot's avatar

This reminds be of a bug I reported in GM:Studio 1.4. Each call to draw_getpixel() or surface_getpixel() was slower than the last. After a hundred or so iterations it became a big problem. The suggested fix was "don't do that". It did not appear to affect HTML5.

Expand full comment
YellowAfterlife's avatar

That's a good mystery! I guess they did have a point about avoiding getpixel, but the alternative is to copy a pixel to a single-pixel surface to do get the bytes from, and that's a little silly.

Expand full comment
Doodle's avatar

Cool story! Next up, .webp

Expand full comment
YellowAfterlife's avatar

Thank you! WEBP support more or less implies using libwebp, so that'd have to be a native extension. Been thinking about APNG since that can be split up into regular PNGs that GM can digest, but the format still isn't widely-used.

Expand full comment
Doodle's avatar

I’ve heard of a png before, but never apng.

What about .heic? 👹

Expand full comment