CanvasRenderingContext2D.drawImage is so slow in a clipping region

This is my code
context.save();
context.beginPath();
//loop
clearRect(x,y,width,height);
context.rect(x,y,width,height);
//loop end
context.clip();
//loop
context.drawImage(........)
//loop end
context.restore();
The drawImage method is very fast if there is no clipping area. But the fps is drop to 10% if there are clipping regions.
Any workaround?

Hi Rob,
Thank you for reply.
Assume there are more than 50 logic layers in my game, I don't think it's a good idea to create so many canvas elements.
I think it maybe a bug of IE, because the draw cost is so high after I added the clipping regions.
Do you have any ideas on this issue? Both IE on desktop and Windows Phone have this issue.
Thank you.

Similar Messages

  • Is there a way to speed up or slow down video clips in iMovie using the iPad?

    Is there a way to speed up or slow down video clips using iMovie on the iPad? I do not have an Apple computer...just the iPad.

    No.
    There are other apps that can to time shifting, or speed effects.
    iMovie cannot.

  • Problem with slow motion reversed clips

    Hi
    I've imported clips into iMovie 11 and can apply slow motion through Clip Adjustments. When I try to do both Slow Motion and Reverse all I get is a still clip. I tried both copying an existing Slow Motion clip and tried to reverse it and tried applying Reverse and Slow Motion at the same time to a normal clip without success. I've tried it with and without Stabilization. Any ideas?

    You are not alone! But I have not found a way to resolve the problem either! Could it be a fps problem?

  • I am trying to convert a video clip so that i can slow down the clip speed, but i keep getting an error -34.  any ideas?

    I am trying to convert a video clip, already in imovie so that I can slow down the clip speed, but I keep getting an error -34.  Any ideas?
    Thanks!

    Hi Russ,
    Thanks for your response. I am not an experienced user of FC or other video editing software but if its that hit and miss I think I will go to the trouble of finding some better software - I have a busy enough life as is, I don;t want to get into second guessing what a software problem might be!
    I have just successfully exported my video to a master file using one of the Apple codec options so it looks like it could be to do with the H.264 codec.  I am wondering if Apples Compressor software would solve this problem - the only way to try this it to buy it, there is not trial for the compressor app.  Any ideas?
    Thanks
    Gerry

  • Slow mo within clip

    Can you do slow motion with in a clip? I know you can speed up or slow down entire clips but I want to add a slow motion inside of a clip. make sense?

    Hi
    Yes I get it
    No - not straight off
    Yes - by working around
    • Start a NEW Project to hold the clip You want a part to change speed
    • Add this clip (ONLY)
    • edit it down to the interesting part
    • change speed on this ( BUT ONLY TO one of the preset values ! )
    • Export/Share this as full Quality QuickTime movie
    • Import this clip into Your MAIN MOVIE project.
    Be aware of some known problems with speed
    • By not using the pre-set values - USUALLY the Audio goes all wrong !
    Yours Bengt W

  • Gradually slow down a clip?

    I want to slow down a clip from 100% to 0% speed, like using pitch blender in sound.
    Actually to match a slowed sound.  Is there a way please?  So far I only know how to
    razor the clip and slow it down in tiny segments, but that seems kinda rough.
    Thanks anyone
    Steve z

    Click on the clip and then go up to the Effect Controls panel and keyframe the Time Remapping effect from 100% to 0%.
    Although as you approach 0% the clip can get pretty long so you will want to drop to zero in a big jump part way along.

  • What is clipping region of swing component

    hi,
    What is mean of clipping region of component

    http://java.sun.com/docs/books/tutorial/2d/display/clipping.html

  • How do I slow down a clip, smoothly from full-speed to full-stop, then speed up again?

    I know that I can adjust the speed of a clip, but what I can't figure out how to do easily is make the clip slow down smoothly, as though time was freezing over a period of say 10-seconds, until it stops.
    My way of describing this (although I know it's easier than this) is to individually clip each frame and set each frames speed at 99%,98%,97%,96% until 0%
    I have read there is a way of doing this by automation, but wonder if someone can tell me how it is done?
    Thanks for the help, cheers, MP.

    See:
    FAQ:How do I vary the speed of a clip?
    Cheers
    Eddie
    PremiereProPedia   
    RSS feed)
    - Over 350 frequently answered questions
    - Over 300 free tutorials
    - Maintained by editors like
    you
    Forum FAQ

  • How come i can slow down a clip but cant speed it up?

    Clip in imovie will play at regular speed or slower speed but it wont play if I speed it up.

    never mind i found the answer

  • Is there a way to slow down all clips by 75%

    I am trying to slow down all the clips in a project to 75% (Sports footage).  There seems to be a way to do this individually but no way to do it across all clips.   Is there?  if not,  sure would like to see this in the next version.  

    Hi WeeJavaDude,
    If you are looking to change the speed of multiple clips in iMovie, you may find the following article helpful:
    iMovie '11: Slow down or speed up video
    http://support.apple.com/kb/ph2239
    Regards,
    - Brenden

  • Transitions slow on some clips

    I am having a problem with slow transitions on some clips.
    Seems like on a clip I bring in from my Sony HVR-A1U it is fine.
    But on clips I have converted from 8mm film to MiniDV then pulled in from the same camera they are like 10 times slower.
    Can anyone tell me why?
    And is there a fix for this?

    .. Clarification..
    a clear discription of the problem sometimes help to find an answer..
    so, you do mean, that little red bar in the clip, indicating the 'rendering' of an effect, moves signficant slower...?
    usually, all these process makes widely use of socalled temp-files, whcih are located onto the internal drive (or, that part of your HDD, where your System is located, if you partioned the drive...)
    if you go under 10 - 20 GB of free disk space, iM slows down 'til freeze...
    to speed up all processes, be sure, your Mac can 'breath'... ;))

  • Can't figure out how to slow down a clip in iMovie HD

    I used to be able to import a clip, select it, and then slow it down (or speed it up) with a rabbit/tortoise slider at the bottom. I can't seem to find this feature since I upgraded to iMove HD.
    G5    

    just found this:
    Click on the Effects button and you'll find one called Fast/Slow/Reverse.
    G5

  • FCPX: Slowing down imported clips

    I want to use some live footage from another movie in my video but I need to slow it down a bit. Is there a way to do this in FCPX?

    [seriously?]
    Right click on the clip in the storyline and select Retime (or type command-R). Click on the handle (vertical hash marks on the "speed bar") and drag it out to the speed you need (feedback in the retime speed bar). You can also select preset speed changes from the disclosure triangle dropdown menu on the speed bar.

  • Slowing Down movie clips? TakingtheMoviefromtheSound?

    I have two questions:
    1) Is it possible to slow-down parts of a movie?
    2) I know how to take sound from movie clips, but can I do it the other way around? As in take the movie from the audio?
    Thanks to anyone who helps!

    .. how to take sound from movie clips ...
    I understood that different to
    ... if it's possible to extract the clip from audio...
    "taking from" I did read as "erase", "extract" is seperating two thing (audio+video into two streams)
    but, sure:
    extract the audio; then, after selecting the video by clicking into it, you are able to copy/paste/move/shift/... that video to any other place, timeline or back to clippane. (this will probably "transfer" the included audio too, so you have to extract audio/erase audio again) ..
    the "extract audio" command just copies/"doubles" the included audio to one of the two additional audiotracks of iM and mutes to original track..

  • Motion Tracking gets slower with longer clips until it stops responding

    Whenever I do feature tracking to stabilize a shot, the first few frames analyse in a split second per frame but then it gets slower and slower until it takes tens of seconds per frame and finally stops responding to user input at all.
    I see the same probem on a 32GB Ram, MacOS 10.8 iMac 4.8GHz Core i7 with a 2GB CUDA capable NVidia card
    (The biggest and fastest Mac you can buy since MacPros are no longer sold until the next generation)
    and MacOS 10.7.5 on a MacBook with 16GB or RAM, 2.4GHz Core i5.
    On the MacBook I had clips starting to track with 15fps for the first 5% but ultimately taking 5 days to track a 12 minute clip.
    I have stage scenes of 10-15 minutes an am tracking the edges of the stage to remove slight camera shakes. Then exporting them to ProRes to use in an FCPX timeline (because there is no integration between Motion5 and FCPX at all and the trackig in FCPX doesnt allow for manually defined feature markers.).
    Tracking anything below 3-5 minutes is okay.
    Even when opening Motion5 again with the tracking data loaded it hardly reacts to user input when moving in the timeline or attempting to play the clip.
    There is usually no other effect applied.
    It's not like it is any more complex or requires any more memory to track the motion of the same feature between frames 5000 and 5001 and between frame 5 and frame 6.

    3 clips of 5 minutes takes mintes to track.
    a clip of 15 minutes take hours.

Maybe you are looking for

  • How can I restart with itunes again  as I seem to have duplicate folders in Music and Itunes?

    I seem to have partially duplicate Music folders  on my computer one called Music (/Users/barry) which is 86.9 gb and one called Itunes music (/Users/barry/Music/iTunes) which is 60.9 GB. I also have a folder of 25GB in /Users/barry/Music/iTunes/iTun

  • My iPhone 5 is bending more and more everyday day

    i got my iPhone 5 1 month and 4 days ago and after using it i have noticed that its bending at first i thought it was a elusion and that it was nothing but now i have noticed that the phone has bent 6 degrees and i am worried is this normal or is thi

  • Populating PDF Government Forms

    I'm trying to determine the best way to populate pre-designed government forms with BI Publisher. These forms do not have any existing markups and therefore I need to add the markup to the pdf in order to map it back to my data source. I haven't foun

  • Read only tables

    I am trying to write protect a Table so that it can only be viewed by others but not write (modified) the data in the table. How can I create and modify a table in order for it to be only viewable. Thanks

  • Neither iPad or iphone 4S will update from 5.01 to 5.1

    Neither my iPad 2 or my iPhone 4S will update from OS 5.01 to 5.1.  On my iPad, when I go to Settings, General, Software Update I get the ipad error message: Unable to Check for Update Now - An eror occurred while checking for a software update. The