Monogame Content Importer

Discuss issues pertaining to the various game/web runtimes of Creature here.
Post Reply
nadako
Posts: 5
Joined: Wed Jan 09, 2019 4:25 pm

Monogame Content Importer

Post by nadako » Fri Feb 22, 2019 10:06 pm

As anyone written a content importer and processor for monogame? Loading in the JSON takes too long.

chong
Posts: 946
Joined: Thu Feb 19, 2015 2:21 am

Re: Monogame Content Importer

Post by chong » Fri Feb 22, 2019 10:14 pm

Hello,

You can consider using the FlatBuffer bytes file instead ( this is the binary representation of the Creature animated character):
https://github.com/kestrelm/Creature_Mo ... le.cs#L204

In the Unity version, users use this to speed up loading by quite a bit.

Thanks

nadako
Posts: 5
Joined: Wed Jan 09, 2019 4:25 pm

Re: Monogame Content Importer

Post by nadako » Fri Feb 22, 2019 10:17 pm

or what would be the best way of creating one for creature?

chong
Posts: 946
Joined: Thu Feb 19, 2015 2:21 am

Re: Monogame Content Importer

Post by chong » Fri Feb 22, 2019 10:19 pm

Please consider trying to load the FlatBuffers binary format first. When you export your Creature character for Game Engines, there will be a .bytes file in it. That is the flatbuffers representation of the character. The load times for loading the binary character should be faster.

nadako
Posts: 5
Joined: Wed Jan 09, 2019 4:25 pm

Re: Monogame Content Importer

Post by nadako » Fri Feb 22, 2019 10:46 pm

chong wrote:
Fri Feb 22, 2019 10:14 pm
Hello,

You can consider using the FlatBuffer bytes file instead ( this is the binary representation of the Creature animated character):
https://github.com/kestrelm/Creature_Mo ... le.cs#L204

In the Unity version, users use this to speed up loading by quite a bit.

Thanks
Doing that helped decrease my load time by half but its still not fast enough lol.

chong
Posts: 946
Joined: Thu Feb 19, 2015 2:21 am

Re: Monogame Content Importer

Post by chong » Fri Feb 22, 2019 11:06 pm

Faster load times will require CreaturePack, might look into porting that over sometime.
CreaturePack is actually quite simple, you can consider porting it yourself to Monogame if you want:
https://github.com/kestrelm/Creature_Un ... eaturePack

Take a look here at the implementation:
https://github.com/kestrelm/Creature_Un ... ack/Distro

Also, there are things you can do to reduce your load times. Please look at your export options like Gap Step Compression and mesh resolution reduction.

Cheers

Post Reply