ENIGMA Forums

General fluff => Announcements => Topic started by: Goombert on February 14, 2019, 11:19:05 PM

Title: Image Format Extensions & New libpng Dependency
Post by: Goombert on February 14, 2019, 11:19:05 PM
(https://user-images.githubusercontent.com/3212801/52867309-a2137c80-310e-11e9-8a7f-5929975a352d.png)

Many of you have been requesting for some time that we switch from LodePNG to libpng to make it easier to install ENIGMA on your platform because libpng is usually available on package managers and LodePNG is not. I wanted to let everybody know that we have finally done this.
https://github.com/enigma-dev/enigma-dev/commit/112dc544d611d5b588e8f0b2e3f193b79e7f0845

This means that libpng is now a dependency for ENIGMA and you will need to install it through your package manager the next time you git pull or otherwise setup ENIGMA.
https://enigma-dev.org/docs/Wiki/Install:Windows
Code: (Bash) [Select]
# MSYS2 64-bit
pacboy -S libpng:x
# MSYS2 32-bit
pacboy -S libpng:i

I have also updated the Ubuntu/Linux installation instructions as well as the easy method script.
https://enigma-dev.org/docs/Wiki/Install:Linux
Code: (Bash) [Select]
sudo apt-get install libpng-dev
There are actually other positive benefits from this change, including the fact that png loading and saving is now many times faster according to several benchmarks I have performed. There may still be additional optimizations we can make in the future, but for now you can see my benchmarks on the original issue where libpng was requested.
https://github.com/enigma-dev/enigma-dev/issues/1391#issuecomment-464307654

Another positive aspect of this change stems from the fact that I integrated libpng into the engine as an extension. This means I have made the image loading and saving "hookable" so that additional image formats can also be supported through extensions. I hope everyone likes these changes and will find that they improve ENIGMA. I also want to mention that I do not foresee us adding any more required dependencies to setup ENIGMA except for FreeType which we'll be using to render fonts in emake and the frontend tools. It will be a shared dependency between the command line and the engine. I just want to give everyone a heads up. Cheers!
Title: Re: Image Format Extensions & New libpng Dependency
Post by: impo on February 17, 2019, 02:38:42 PM
great news robert, thanks for the update
Title: Re: Image Format Extensions & New libpng Dependency
Post by: Goombert on February 18, 2019, 04:39:13 AM
You're welcome, and I hope to have some more exciting stuff to announce soon!
Title: Re: Image Format Extensions & New libpng Dependency
Post by: cheeseboy on February 20, 2019, 02:00:39 AM
You're welcome, and I hope to have some more exciting stuff to announce soon!

when you announce date you come out of hiding?
Title: Re: Image Format Extensions & New libpng Dependency
Post by: Darkstar2 on February 20, 2019, 01:54:20 PM
You're welcome, and I hope to have some more exciting stuff to announce soon!

when you announce date you come out of hiding?

lol !
Title: Re: Image Format Extensions & New libpng Dependency
Post by: Dragonite on March 01, 2019, 11:06:13 AM
Good job.
Has there been any progress in keeping EDL up with GML features that were added in the last years? Such as accessors, enums, the collision_list functions, etc.
Title: Re: Image Format Extensions & New libpng Dependency
Post by: Goombert on March 09, 2019, 02:10:11 PM
Quote from: Dragonite
Has there been any progress in keeping EDL up with GML features that were added in the last years? Such as accessors, enums, the collision_list functions, etc.
There hasn't been much in this regard yet, but we are looking at some things and hopefully may have some positive news about this in the near future.