Increase time to shoot 10 000 triangles

It is a test program to measure the time it takes Flash to draw a triangle 10,000 times.

The app (code below) called runTimeTest() every N seconds that draws the triangle 10,000 times.

Now for the "interesting" part: each call takes processor more until after he goes on the 6th or 7th call for "Infinity" (see screenshot of the Task Manager)

Bug weird or explainable?

Screenshot: http://i34.tinypic.com/jutpwo.png

create a canvas draw
var c:Canvas = new Canvas();
function onApplicationComplete(e:Event)
{
c.Width = width;
c.Height = height;
c.x Fokker-built = 0;
CY = 0;
addChild (c);
set a timer to run every 10 seconds
var: timer = new Timer (10000);
timer.addEventListener (TimerEvent.TIMER, runTimeTest);
Timer.Start ();
}
function runTimeTest(e:Event)
{
It is called every 10 seconds
var x 0: int, x 1: int, x 2: int;
var y0:int, y1:int, y2:int;
whole triangle vertices
x 0 = 100; Y0 = 500;
x 1 = 120; Y1 = 515;
x 2 = 155; Y2 = 500;
draw a filled triangle 10,000 times
for (var i: int = 0; i < 10000; ++ i)
{
c.graphics.beginFill (0xff0000, 1);
c.graphics.moveTo (x 0, y0);
c.graphics.lineTo (x 1, y1);
c.graphics.lineTo (x 2, y2);
c.graphics.lineTo (x 0, y0);
c.graphics.endFill ();
}
}

Tested myself, and indeed it takes an increasing amount of time to draw. Definition of cacheAsBitmap did not help... What you can do however is clearly the figure between loops with: c.graphics.clear (); just before your loop for. With that I get useage processor max 20% on successive draws.

It takes more time every time is not serious because create you 10 000 vector shapes in your 'canvas' every time... just because they are on top of the other - there are still 10 000 forms in this object. Then 20,000 on the next pole, etc. Once you get 30-40 000 forms in the display list you ask just trouble.

Tags: Adobe Animate

Similar Questions

  • Increases time to start w/HP Officejet J4580?

    I just bought and installed an HP Officejet J4580. I am running Vista Home Premium (32) with all updates installed. Time to start the computer after

    installation of the printer software has increased 1.5-minute when starting and restarting. Any ideas?

    Solution, thanks to the user Grisham. He responded to the thread 'slow with J6480 printer start' in this category (FYI, works

    with VISTA-32 too):

    "My PhotoSmart C4380 suffer from the same problem." In a freshly installed XP, who having nothing, but only the C4380 drive suite installed, the drivers will add always about 2-3 minutes for a start.

    After some trial and error, I found that if you change the settings of the 'HP CUE DeviceDiscovery Service' service to start manually instead of automatically, the start time back to normal.

    See if that helps in your situation.

    1. start-> Run-> "Services.msc".

    2. Locate and double-click "HP CUE DeviceDiscovery Service"

    "3. change its launch option from"Automatic"to"Manual"

  • Increased time in Adobe Flex Builder 2.0 script

    Hi all
    Use an Adobe Flex Builder I create an application that has a lot of complex recursive sorting which are relatively longer algorithms and so the overall time required to complete the execution of the function goes beyond 60 secods after 60 secods Flash player throws an error message and terminates the execution of script. Is it possible to increase the scriptTimeLimit more than 60 Secods.Currently I add scriptTimeLimit Applicatio tag setting while I'm able to run my function for 60 seconds...

    "" < mx:Application xmlns:mx = ' http://www.adobe.com/2006/mxml ' layout = "absolute" creationComplete = "DoSomething () ' scriptTimeLimit ="60">"

    Is it possible to increase the limit, that is to say 10 minutes?




    You won't be happy to hear that, but it's not. As of flash Player 8, 60 seconds is the maximum.

    I have a client who is frozen in FP7 due to this stupid and arrogant decision. I filed requests for improvements on that nothing does not.

    People will be talking about all how most times lead to a "bad experience" for the user, but it's again arrogant that they believe that they have no idea what made MY app and which will accept users.

    What happens if Flex Builder bombed on any time a compilation took longer than 60 seconds? What kind of "experience" that would be?

    Because of this silly limitation, I have to move my recursive processing on the server. But it will take about 6 weeks, and I still find the time "to"rescue", or find someone to pay for it.

    GRRRR.

    Sorry to be the bearer of bad news.

    Tracy

  • How to increase time to a clip of introduction

    Hello. I'm working on my first video. I finished almost everything, including the editing and

    adding in a secondary soundtrack. Now, I have to add voice over clips for each segment.

    When recording the voice over for the segment of the initialization sequence (a fade to the black segment with an illustrator/title field), I realized that the voiceover required is much longer than the black clip fade I originally put in the video; the voice-over is 21.9 seconds of time and fade to black segment is only 5 seconds long.

    I tried to simply move the right edge of the lead-in segment to the right to extend the time, but nothing happens. I can't get any video to extend his timeline. I must of course have locked up some or all of the segments, but I can't seem to understand how unlock so I can extend the segment of the initialization sequence.

    Can someone tell me what I am doing wrong or what I need to do to solve this problem. There must be a simple way to extend the chronology of the lead-in segment, and I just lack.

    Thanks in advance to anyone who can offer suggestions.

    Hold the Ctrl key when you click on the tail of the Clip, you need to expand and drag it to the desired length. That will force all after move down too.

    Good luck and welcome to the forum.

    Hunt

  • Creative cloud increases Windows 10 stopping time

    HI HI. I am a student and a TA for an intro to Film class. Although I'm not currently a Subscriber I like to keep creative cloud and Premier Pro on my system, just in case people needed the latest version. (School tends to be 1 or 2 steps behind several times.)

    I recently upgraded to 10 Windows and reinstalled just yesterday. On stop last night and the test again this morning, stop with background cloud Creative services on GREATLY increased stopped in time. (Upwards of like 30 seconds to 3 minutes). Tests by closing them manually before closing the system down it closed within the normal period. Is there a way to prevent ALL of these services to run until I opened the creative cloud or Premier Pro?

    I don't want to stop the increase time every day something i can use once every 6 months. (Normally I just use a school system since I can't afford to sign up.) : O

    How to control the Windows startup (Win10, do not know earlier)

    1 right click on the Windows button down left

    2 - Select the Task Manager

    2B, you may need to select the Task Manager option to see the Startup tab

    3 - Select the Startup tab

    4 - disable Adobe services that you do not want to run

    -there including, but not limited to...

    -Adobe Creative Cloud

    -Start adobe Updater utility

  • Satellite Pro A200 - 26 minutes of normal time remaining?

    Hi all

    My laptop Satellite Pro A200 is a little over 1.5 years (or young: P) and I have a huge problem with the battery - it only lasts for a total of _26 minutes_ under "high performace" mode in Vista - other modes the power increase time to 5-7 minutes.

    I've tweated the system configuration for:
    -too few programs running at startup;
    d ' use as little memory in what concerns the graphics (as in the disabled vista themes and operations "fantasies" show window contents while dragging).
    -stay on the low light.

    The programs that run at startup are my anti virus (F-Secure) and ATI catalyst control.

    I also cleaned the registry conflicts and scan for viruses regularly.

    I used Ubuntu on this laptop as well and the battery life is not that much better, which leads me to the conclusion that the battery comes to an end.

    I was wondering if this duration of battery life (26 minutes max on high performace) is normal for a laptop after only 1.5 years? * (I don't remember how long it has lasted when I first bought).

    Also, I have a laptop from other manufacturer of 2 years and its battery lasts a minimum of 4 hours (on Windows XP).
    The two laptop batteries are 6 cells.

    Any suggestions on how to improve my battery life?

    Thanks in advance.

    > Satellite Pro A200 laptop computer is a little over 1.5 years and I have a huge problem with the battery - it only lasts for a total of 26 minutes in "high performace" mode in Vista

    Battery working time depends on different factors:

    If parts of different hardware such as CPU, GPU, HDD, ODD, display perform better performance then dramatically decreases your battery work time
    In addition, if you lose a stronger battery (9 or 12 cells cell) then you should be abele run Notepad a lot more time using the battery power.
    In addition, the battery loses the own performance systematically and after a long period of use, you will need to replace the battery.

    However, if you wish, you can check the Vista Power Options to increase the working time of battery:
    Here's a nice article:

    How to manage Windows Vista power management features
    http://APS2.toshiba-tro.de/KB0/HTD84026Q0000R01.htm

    But in the worst case you will need a new, stronger battery

  • You don't you E-Print to work? Feel the air works part-time?

    Unable to get printer code? Printer keeps asking for the proxy server and proxy port. What are they and how to find them.

    My impression of air works part-time. How to fix it. (I closed made printer etc. - it solves the problem for a time of shooting)

    Hi rprasuhn,

    Thanks for the reply.  Try the following steps.

    I would first disconnect the router and the printer for about 1 minute. I would plug the router first then the printer. I would then try to enable web services. If not successful, and you get the same error message. I'd follow these steps.

    1 obtain the IP address of your printer

    a. This can be done by pressing the icon on the printer wireless.

    2. Enter the printer's IP address in a browser.

    3. Select the tab network at the top of the page.

    4. on the left, select network.

    5. Select Network (IP) address

    6. select manual DNS server

    a. manual Preferred DNS should read 8.8.8.8

    b. alternate DNS server should read. 8.8.4.4

    7. Select apply you could get a fair warning select OK.

    Let me know how it goes.

  • How to change the date of shooting in ImageBrowser?

    My default Slidescanner at the same date.  How to use imagebrowser to reset the date of shooting at a date I specify?

    Hi TheDobsonGuy!

    Thanks for posting.

    The time of shooting is part of the EXIF information integrated with each image in the camera he took.  ImageBrowser doesn't have a tool that allows the EXIF information to be edited.

    However, if you find the image on your computer, using WIndows Explorer, for example, you can right click the image and view its properties.  You can try to set the date of shooting like that.

  • "automatic shut down" shooting video using my T3i

    The video stop usually occurs 4-6 seconds in shooting.  May 2 to 4 times in a row, then the next time he shoots perfect video.  I recently returned from an Alaska Cruise.  Why on a day cruise, take pictures of whales, I spoke to two other Rebel T3i users and they have the same problem.  I do not often use the video mode, but when I do, I expect to work along with the rest of the features of my T3i. I'm very surprised that I can't find the other Canon users, in this forum, who have experienced the same problem.

    Just read on the 'Extreme Pro' SanDisk 32 GB... definitely worth a try, because I like to shoot more trouble video HD free

  • Query slow ping and waiting times

    Nice day

    I am running vmware workstation on a platform 8 Windows 7 x 64 base, I loaded the sbs 2011 standard server, the problem I have is the network it interrupts the connection. If I execute a ping command I receive < 1 ms response time can he start randomly increasing time for about 2-3 application and then eventualy continues ping again which causes my data lose the connection. The vm guest operating system has its own network card mode with VMnet0 briged bound to a network adapter.

    any help will be welcomed.

    concerning

    Kevin

    You can do this simply connect the second NETWORK card your switch with a stright cable with a different range of IP addresses. Please make sure that you can test your vmserver from your workstation.

    You must also configure two IP addresses to access the router both IP and IP of the vmware hosts. If you use windows, then here is the process to set up several Ip address process. Take a look...

    http://TechNet.Microsoft.com/en-us/library/cc722518.aspx

    Hiiich
  • Video takes a LONG time

    Howdy, everyone. I am currently shopping around for a video editing application, and I'm using the trial version of Adobe Premiere Elements. I love everything about it so far, except for one thing. It takes a long time to save the final video file (from the tab share). I noticed he gets to 50% fairly quickly, probably within five minutes and at that time there the progress bar slows down to a crawl. It takes more than two hours for the last 50% complete. Is this rare or should I wait?

    Here's a little history of my project, in case this is useful.

    The video project is a little less than 30 minutes.

    On the sharing tab, I selected to export files for viewing on computers.

    The type of video I want is WMV (Windows Media). I can vary from this format. It is a requirement of the project.

    Image size: 1024 x 768. At the moment I can't vary that size. The video must be 1024 x 768.

    Frame rate: 30 fps

    Audio: mono 48 kbps, 44 kHz, CBR

    Codec: Windows Media 9

    Encoding Passes: 1

    Bitrate Mode: Constant (I also tried of Variable quality, but noticed no difference in time rendering)

    Maximum flow: 200 Kbps (the first time I tried 2 000 kbit/s, but I noticed no difference in time rendering)

    Image quality: 3 (I also tried 90 but once again without any perceptible difference when rendering time)

    My laptop:

    Windows XP Pro SP3

    Intel Core 2 Duo 2.2 GHz

    2 GB of RAM

    The window says that I would wait the video size to be 53MB in size, which seems reasonable. But when it finishes, it is more than ten times greater than this estimate. I don't understand why the file size is so big and the render time is so long.

    My rendering time is governed or strangled because I am using a trial version of Premiere Elements?

    If this is not the case, what suggestions you all for me? Am I be unreasonable while waiting for my render times to be faster than the duration of the video?

    Thanks in advance for your help. Please let me know if I can provide any other details.

    WMV is a highly compressed format/CODEC, and the duration of the treatment will depend on several factors:

    Your CPU, which is not as powerful in your case

    Your auxiliary I/o system, which is probably a single HDD on your laptop

    The source footage. What is your source footage?

    No effect added to the images. You have all the effects?

    Each of them will have an impact on the time required.

    The trial is that a single main limitation - watermark. Now, there are some components that need to be triggered, but are not tested, but they would not obvious with the import of your source footage, if it is a question.

    Good luck

    Hunt

  • services.exe memory consumption and therefore 15 minutes to start

    services.exe memory consumption and therefore 15 minutes for bootProblem Description: it seems that since the installation of updated KB973687 my Dell Inspiron 640 m takes an age to start. I am running XP SP3 with all updates installed, have 2 x 512 MB memory installed and the basics of microsoft security is enabled and no virus detected. Run the task on the Startup Manager, I see that services.exe 2 user running objects. Maximum memory use reaches about 500 000 to 600 000 k and the size of the virtual memory increases to more than 2,000, 000 k. Once the VM reached approximately 2 200 000 k it starts to release very slowly and finally reduced to a size of about 6 000 - 7, 000 k, then just a race of user object. It is not until that time where the system becomes usable. What is happening at each startup and lasts about 15 minutes for the system be usable. I have read many articles on this issue, and the other that a clean reinstall which I do not, cannot find a solution. Your help would be greatly appreciated. Operating system: Windows XP

    Your list is very different and much longer than mine. My first thought is that you have the programs loading at startup that might as well load up on request. A useful tool for watching the startup items is Autoruns.

    http://TechNet.Microsoft.com/en-us/sysinternals/bb963902.aspx

    Google search result - report

    http://www.Google.co.UK/search?SourceID=IE7&q=Rarrort+service&RLS=com.Microsoft: en - gb:IE - SearchBox & ie = UTF-8 & oe = UTF-8 & rlz = 1I7ACAW_enGB397GB397 & redir_esc = & ei = mgTwTLvpE4GxhAeUtZSUDA

    Right-click on the report, and then select the graphic Performance. What is the CPU usage and the private bytes. I suspect that you need to know the use during StarUp but for now know how to do this.

    I'm intrigued by the absence of references to other security software. What antivirus, antispyware and firewall do you use?

    Hope this helps, Gerry Cornell

  • Further clarification - is FREE (if we stay below the line)?

    Online, it is established that Push more service is a "paid service level.  However, we also see it said that this level of service is free IF we stay under the shoot 100,000 per day threshold.  Since we had some recent trouble with the accuracy of online information compared to what happens in example code, could you please check that push more is free if we are below this threshold of shoot/day 100 K?  According to me, there was another post this question in 2010, but it was unanswered.

    Thank you!

    Push Essentials is the type of thrust available for everyone for free, regardless of the number of times that you push.  That's what almost every developer uses.  Push more requires a contract to settle with BlackBerry around price and volume.  We are actually trying to push more to denigrate and no new request for it is accepted.

  • Windows 7 - Media Center - photos - slide show settings - sides

    QUESTION: Did anyone know if you can set the slide show according to different sides so that the slide show will play only pictures rated 4 and 5 stars for any folder of pictures (and not show photos rated 3 and below)?

    PROBLEM: It seems that you can set Media Center to view a slideshow of 4 and 5 star pictures for every single photo on a computer in a massive slide show. If it is possible to change my slide show's settings so that I can see the pictures of only 4 and 5 stars (and no pictures rated 3 and below) for any given issue, I was not able to find it.

    USER SCENARIO: I shoot 1,000 photos at a wedding and I rate 30 of these 5 stars, I note one another 900 as 4 stars, 50 I rate 3 stars, and the other 20 Note: 1 star for eventual deletion. I want someone to be able to use Media Center to show only the photos of 5 stars to friends (30 photos), but when family comes and they want to see more photos, they can change the Media Center slide show's settings so that the family sees only the photos 4 stars and 5 stars (80 photos).

    NOTE: It seems to me that the global settings are a limited setting or another, but never a combination of two or more. I can view and play photos in a folder given with Media Center in an appreciation of deceasing order, it does not work for associated events like a wedding time, or I can see all 4 and 5 stars for my entire computer, but not folder?

    Any help on this or recommended 3rd party Slideshow program would be greatly appreciated.

    Thank you, Chris.

    Hello
     
     
    You may experience this problem if the data store is corrupted. So, try to rebuild the Media Center data store.

    To do this, follow these steps:
    1 exit any running instance of Windows Media Center.
    2 delete the mediaCenterDataStore.db file. By default, this file is located in the following location:
    %SystemDrive%\ProgramData\Microsoft\eHome\mediaCenterDataStore.DB
    To remove the file, follow these steps:
    1. click on start and then click Run.
    2. in the Open box, type run and then click OK.
    3. If you are prompted for an administrator password or for confirmation, type the password, or click on continue.
    4. in the Open box, type %systemdrive%\programdata\microsoft\ehome and then click OK.
    5. in the details pane, right-click right mediacenterdatastore.db and then click on remove.
    6. click Yes to confirm that you want to move the Mediacenterdatastore.db file to the trash.
    7 restart the computer so that the changes take effect after you perform the steps.
    8. start Windows Media Center.
     
    For additional assistance on the photos to labelling, see the documents below:
     
     
     
    I hope this helps.

    Thank you, and in what concerns:
    Shekhar S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.
    If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • Preserve the favorite iPhone in Lightroom?

    I can't find an answer on the forum or online.  My workflow has been less that optimal because I bought an iPhone in December, and I'm trying to find a way to recover.

    I have now 11 000 photos on my phone - with 1,000 marked as Favorites.  My workflow in the past, with a camera, was to download my photos in a folder and then process in Lightroom - including their ratings.  But I'm at a loss of what to do now.  I have all kinds of ways to get pictures from my phone.  But most of them do not save "Favorites" to the extent indicated in the iOS.  I know that Lightroom Mobile on my iPhone (just installed) does not recognize them.

    One approach is to forget and re - note in Lightroom.  But maybe I could re-download with Photos, ask him to save the notes in the metadata, and then Lightroom will recognize?

    My hope is to use Lightroom in the future, but I'm swamped, whenever I think about it.  (A separate issue is the flow of work in the future.  I think Lightroom mobile, rather than pictures of iOS, for ratings online.)

    Thanks for all the help.  To close the loop on this request, here are the steps I followed.  They proved to be relatively simple, but a little slow.  I had six months of pictures that I had assessed only on my iPhone, but had not yet imported or processed in Lightroom. There is no overlap.  Otherwise, I would have probably re-rate them.

    The steps:

    1. Download all the photos for the Photos App on OSX icloud.  (It was slow - he did it wireless, which took a few days.) "I couldn't understand a quicker way to synchronize directly without using iCloud.)
    2. In Photos, select the 'Favorites' album (which had more than 1000 ones I ' D "hearted" on my iPhone).  Add a "favorite" keyword for these photos.
    3. Export all the photos of Photos on my hard drive.  Confirm that the keyword went with it.
    4. Rename photos using ExifRenamer for names photo showed dates and times, as well as the name of the original file (if, for example, IMG_1234.jpg becomes 2015-12 - 08_21h58m25s_1234.jpg)
    5. Download videos from iPhone separately using ImageCapture and rename with ExifRenamer.  The reason is that, when exports of Photos, videos, information on the time of shooting is lost.
    6. Import in Lightroom
    7. Confirm that "Favorites" keyword is appeared in LR.  (For unknown reasons, I had to do twice the steps 3 to 7  I had started making an experience with some pictures, and it worked; but when I did all the pictures, key words had got lost somewhere between steps 3 and 6).

    I will improve my workflow move forward to avoid having to redo all this!  I also realized that I won't stay in the Apple ecosystem (with all the photos in their own massive proprietary database) :-)

Maybe you are looking for

  • SWIFT code no longer works

    Hello I am an OS X application in Swift and I am having some problems. I have a code in my project that has worked before, but it does not work now. It's even give me an error. I just doesn't work at all, point. The code has worked before, so I don't

  • How to set new tabs to the home page when open

    I don't have any setting of the problem to the top of my home page, but open new tabs as blank pages. How to configure Firefox to open new tabs to my homepage, when I opened a new tab manually?

  • Satellite M40x-119: connection WiFi disconnects frequently

    Hello I have a portable computer Satellite m40x-119. my wireless disconnects frequently after awhile at each connection. I have a roboticts wireless adsl modem. I don't know what to do or what to download. I will be happy if you can help me. with bes

  • During updates error codes

    How to update or upgrade my computer without getting error code 80072efe.  I have service Pack 2 installed, but I still get the error code, please help.

  • Windows update failure: 2007 Microsoft Office Suite Service Pack (SP1) and 967912 KB

    Windows Update automatic updates have been lacking on my laptop since October 11 (there were 15 updates, lack of each stop). I found a thread that stated that I could download and install the updates manually and was able to do this for all the updat