Skip to main content
ProjectorBach
Known Participant
January 17, 2018
Answered

oam file suddenly not streaming well at all

  • January 17, 2018
  • 1 reply
  • 1458 views

Hello all,

I made a project that mimics our friendly train system's app here in Chicago as a means to display my ability to use photoshop, animate, and some JS.  I pushed the files onto github and found a link to a site that let me host my github content immediately.  Here's its link:

https://rawcdn.githack.com/rockomatthews/metraaaa/master/metraaaaUnresponsive.html

It was working perfectly initially there.  But I even later put the .oam file into a muse site and its lately been very laggy-looking.  It reminds me of a computer running too many apps than it can handle.  Delayed touch interaction, etc, etc.  This them is consistent when it is viewed within html and directly imported as an .oam in Animate.  My first idea is to make it simply make it smaller.  That usually fixes slow beasts.... but I am posting here assuming that is not the solution. One more thing, it has never lagged while previewing in Animate.  Thanks in advance!!

Here it is on my site:

http://robmatthe.ws/metra.html

Any ideas?  Export settings possibly?  New update to software I am not familiar with or should take into account?

    This topic has been closed for replies.
    Correct answer Colin Holgate

    I just did a lot of other tests:

    metraaaa

    Say how that gets on! Here's what I did:

    I changed all of the bitmaps in the library to be lossless. Most of the graphics are flat colored areas, no need for them to be JPEG. The images folder only grew in size a little bit.

    I made the sprite sheet be 2048x2048, and 32 bit. That does mean there are a few extra image files to download (which the maxconnections will help), but at least the viewer doesn't have to cope with an 8192x8192 PNG.

    I changed all of the tweens I could find to be Class Tween instead of Motion Tween. I may have missed some. The Output panel is still complaining, so I must have missed at least one.

    I also changed the responsive mode so that it should fit in the desktop browser window.


    I did some more things:

    Found the last Motion Tweens and made them Classic Tweens. Aside from the performance improvement, doing this reduced the JS file from 83k to 33k.

    I took out the preloaded, the page loads so fast now it just delays things.

    I ran the images through tinypng.com. That took the images folder from nearly 900k to under 300k, and still look lossless.

    Well, that will do for the moment!

    Oh, I made an oam for you to try too:

    http://colin.scienceninja.com/metra/metraaaa.oam.zip

    It doesn't have the maxconnections change, and isn't using the optimized images, but it does have the tween changes.

    1 reply

    ProjectorBach
    Known Participant
    January 18, 2018

    Any ideas?  Would anything released has caused an issue that messed up how my oam plays?  I made the project in early summer 2017

    Preran
    Community Manager
    Community Manager
    January 22, 2018

    From what I know, nothing much has changed in recent months that could affect the performance of your file. I wish I had a better answer, but I really haven't heard a similar issue like the one you are having right now.

    Participating Frequently
    January 24, 2018

    actually the tests are the same.... I get the same result bad result...  Its weird.  I haven't touched it since August and in August it was working fine.  I get this message upon the test running.  Is this any sort of clue?


    Hi suckboi - did you ever find a solution of this? I think I've hit a similar snag on my end too. Weirdly though it actually plays better on desktops than it does on mobile. It was working great a few days ago, and now suddenly the frame rate has gone down to about a quarter of what it once was, like the processor just can't keep up where it previously had no issue.

    Anyway, would love to compare notes.

    Brad