0 Replies Latest reply on Sep 23, 2016 5:22 AM by nsaneo

    Request: Adding AdHelper code to Animate CC's HTML

    nsaneo Level 1

      Hi Adobe,

       

      The Problem
      When I preview multiple HTML5 canvas files/banners on one previewpage the CPU jumps to 100%.
      What happens next is that the framerate drops down, causing the banner to slow down.

       

      The solution

      AdHelper seem to fix this problem with this:

       

      var ad = new createjs.AdHelper(stage)

        .setSleep(15,0,0)

        .timeSync()

        .watchFPS(15, 1);

        var failCount = 1;

        ad.on("slow", function(evt) {

        if (failCount === 0) {

        evt.preventDefault();

        failCount++;

        this.watchFPS(15, 1);

        }

        // else if (failCount === 1){

        // createjs.AdHelper.showAltImage(canvas, "images/backup_300x250.jpg", "javascript:doClickthrough(this)", "BannerWave", "_blank");

        // }

        });

       

        function changeFPS(framerate){

        createjs.Ticker.setFPS(framerate);

        }

       

      My question

      Can you guys (Adobe) fix this in a a new update?