Jump to content

SCML / SCON file size - Optimation suggestions requested


carlywight

Recommended Posts

Hi!

I was wondering if anyone can offer some insight in to the file size of exported SCML and SCON files.

Some of the animations which we've created are quite complex; using many keyframes across up to 20 assets in some instances, and with animations that can last 10 seconds. They're playing beautifully in Construct 2 when they've been loaded, but loading those files in the beginning is where the delays are occuring.

 

My longest and most complex animation has an SCML file that is 2.8mb, and the SCON file is 4.3mb. There are 13000 frames on the timeline.

This is not a loopable animation - it's a necessary bespoke addition (kinda like a cutscene I guess) so there's no 'make it simpler / shorter / loopable' options here. What i'm wondering is if there is potential to optimise the files by reducing the overall number of frames in the project and using the 'stretch keys' feature, then setting the playback speed ratio of the animation in Construct 2 to suit. i.e. - reduce to 6500 frames and set playback to 50%. How will this impact the way that the importer and Construct work together? Does changing the playback speed create more work for the engine, or is this something which is feasible to do - I tried shrinking it but the file size didn't change so it seems like it has more to do with the number of keyframes.

 

On a side note - when do the relevant SCML/SCON files load for a layout? Are they all done at the very beginning or are they loaded with the other assets before each layout is displayed?

 

Happy to take any suggestions you have!

Link to comment
Share on other sites

Hi carlywight,

 

Yes, the number of keyframes and the number of objects per keyframe are definitely the two biggest factors contributing to the size of a Spriter file. 

 

If you reduce the number of key frames there won't be a need to stretch the animations duration because it was never changed in the first place.  Remember, Spriter animations are not based on a specific FPS, a keyframe represents a change at a specific point in time, deleting a keyframe does NOT reduce the duration of the animation.

 

I'll bring this thread to the attention of Edgar (Spriter's programmer and the creator of the C2 Plugin (with Ashley from Scirra's help) so he can way in with any other though.)

 

cheers,
Mike at BrashMonkey

Link to comment
Share on other sites

Hi Mike!

 

Thank you for confirming!

It was reducing the number of frames overall, not keyframes that I had tried to no avail, but I didn't have high hopes for that strategy anyway based on my assumptions.

Would love to hear from Edgar if there is anything else to try; I guess we just got too fancy with our animations! (we're animators before game devs, so charting new territory) I'm sure you're hearing it a lot, but FFD or Mesh Deformation would surely help in this instance! :)

 

Wishing everyone a fantastic week.

Thanks again!

 

Carly

Link to comment
Share on other sites

For anyone else reading this, Edgar suggested turning off the prettify options for export found at File -> Other File Actions -> Custom Save Options

Thoughts were that this would be a modest saving, but it almost halved my originally mentioned file sizes.

 

Thanks again Edgar and Mike :)

 

Edit - I'm still using R2 because i'm at the end of a project and I have upgrade phobia this close to the end!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...