[ADDED] WEBP file format for maps (Full Version)

All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> Tech Support



Message


xan2622 -> [ADDED] WEBP file format for maps (12/1/2019 9:38:01 AM)

Hi.

The game seems to struggle loading maps (layers), those can be huge and performance can be affected by the files size of images. This slowness can disappoint some players or ruin their game experience (to some extent).

Related posts:
https://www.matrixgames.com/forums/tm.asp?m=4719076
https://www.matrixgames.com/forums/tm.asp?m=4717106&mpage=1&key=loading�
https://www.matrixgames.com/forums/tm.asp?m=4721521
https://steamcommunity.com/app/1076160/discussions/0/3356799628321085554/
https://steamcommunity.com/app/1076160/discussions/0/3356799628308732310/
https://steamcommunity.com/app/1076160/discussions/0/1609400247640082450/
...


Hence this suggestion:
Could the game support .webp images files for maps?


WEBP Info:
https://developers.google.com/speed/webp

API:
https://developers.google.com/speed/webp/docs/api

PNG to WebP - Comparing Compression Sizes:
https://www.keycdn.com/support/png-to-webp

WebP encoding tool GUI:
https://github.com/samuelcarreira/webPGUI

WebP file format plug-in for Photoshop (but you can open .webp files natively with krita):
https://github.com/webmproject/WebPShop

Wrapper for libwebp in C#:
https://github.com/JosePineiro/WebP-wrapper


Thanks to this webPGUI tool, I have been able to convert all the BMWGv2 .png images to .webp (default compression settings).
Total size of the original BMWGv2 folder (png+dds): 2.29 Gb
Total size of the same folder but with converted png images (webp+dds): 630 Mb


Screenshot:
https://imgur.com/a/y53y3V6


If you compare file sizes, you will notice that if the majority of tiles have been correctly ported to .webp (with a smaller .webp file size than the .png), there are a few rare exceptions:
Those in the \BMNGv2\3\0064\ folder for example (these images are plain white btw).
0064_0000.png: 349 bytes
0064_0000.webp: 514 bytes


(I sent the BMNGv2 map package (only .webp files) to developers on Discord).
https://drive.google.com/open?id=1iChq17W_pPuWz0n8YIexF4coMrPHxyCj (password: CMO)


There is a slight difference between the png and webp, but IMO, the quality is really good, enough for enjoying the game, and as a bonus, with a total decreased files size.


I don't know if CMO developers will want to use this file format but maybe the C# libwebp wrapper can help them support this kind of images? (I've been told that they use .NET for the game).
IMO, it would worth taking a look at it, it could really reduce the bandwidth needed to transfer these assets (maps, textures) and maybe help display map layers faster ingame ?





Dimitris -> RE: WEBP file format for maps (12/1/2019 9:43:43 AM)

Hi,

We are actively looking into this ATM, in fact, together with a few other measures. Please have a little patience!




xan2622 -> RE: WEBP file format for maps (12/1/2019 9:53:53 AM)

Hi Dimitris.

Thank you for your answer.

Don't worry, I have patience :) I just wanted to share informations about this file format to other players. Nothing more.
I don't expect any ETA date, I am sure this is not an easy task and I know that you have other bugs/features to take care of first.




Dimitris -> RE: WEBP file format for maps (12/9/2019 5:36:17 PM)

The first measure is included on an update that we released today: https://www.matrixgames.com/forums/tm.asp?m=4730735




xan2622 -> RE: WEBP file format for maps (12/28/2019 8:50:20 AM)

Posted on the CMO Running Poll.




xan2622 -> RE: WEBP file format for maps (1/7/2020 8:09:07 PM)

From the Command Modern Operations update - Build 1121.4 changelog:

quote:

* The "Land cover" map layer now uses WebP format for the tiles (instead of PNG), which achieves much smaller file sizes.

[&o] [sm=00001746.gif]


I have just noticed that while the game creates a ~\Steam\Steamapps\common\Command - Modern Operations\WW\Cache\LandCover_300_webp\ folder and creates many 3, 4, 6, 7, 8, 9, 10, 11, 12 sub-folders, there is nothing in these sub-folders. No webp image is downloaded.

I am now using the latest beta 1121.4 on Steam (manual update, overwriting previous files).




Dimitris -> RE: WEBP file format for maps (1/9/2020 10:03:19 AM)


quote:

ORIGINAL: xan2622

From the Command Modern Operations update - Build 1121.4 changelog:

quote:

* The "Land cover" map layer now uses WebP format for the tiles (instead of PNG), which achieves much smaller file sizes.

[&o] [sm=00001746.gif]


I have just noticed that while the game creates a ~\Steam\Steamapps\common\Command - Modern Operations\WW\Cache\LandCover_300_webp\ folder and creates many 3, 4, 6, 7, 8, 9, 10, 11, 12 sub-folders, there is nothing in these sub-folders. No webp image is downloaded.

I am now using the latest beta 1121.4 on Steam (manual update, overwriting previous files).


Thanks, confirmed and we are looking into it.




Dimitris -> RE: WEBP file format for maps (1/13/2020 1:03:36 PM)

Fixed for the next update release.




xan2622 -> RE: WEBP file format for maps (3/13/2020 6:39:14 PM)

Hi.

I just wanted to thank you very much, Dimitris (and other developers) for adding WEBP tiles for maps.
I have noticed a significant increase of download speed of tiles.

Did you choose a specific compression for the WEBP images?




Dimitris -> RE: WEBP file format for maps (3/13/2020 7:04:23 PM)

Thanks.

We used the default quality value used by Google's cwebp tool, which IIRC is 75.




xan2622 -> RE: WEBP file format for maps (3/28/2020 4:55:44 PM)

On CMO version B1139.2 :

I notice a "separator line" between some webp tiles with the BMNG layer.

[img]https://i.ibb.co/B4tgVtL/zzer.png[/img] [img]https://i.ibb.co/TW8Yxbk/zzer2.png[/img] [img]https://i.ibb.co/xHV0bWv/zzer3.jpg[/img] [img]https://i.ibb.co/SXQfS3w/rtee.jpg[/img]

These screenshots were made with 1221.5 but it happens also on B1139.2


I have the feeling that these lines might be the result of some weird webp compression at the edges of tiles.
Note that it doesn't occur on every tile (just between some tiles).



Also posted here : http://www.matrixgames.com/forums/fb.asp?m=4775872




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.046875