Fading a scene, what's most efficient?

I'm developing an engine that creates a scene using a load of symbols and manipulates them. What I'm wondering is; is it more efficient to fade a scene by increasing the alpha of each symbol, as my background is black anyway (the colour I want to fade-to). Or is it better to fade using an extra layer on top which becomes more opaque?
While the fade is occuring, the engine will be paused, so it won't be moving objects etc. as normal.
Also, is it more efficient to do one at certain times? For example; if I have five symbols will symbol fading be better than a fade-layer, while 20 symbols would be less efficient?
Just trying to get an idea for this now while I develop the meat of the engine, the fancy fading between scenes (rather than the current "snapping") can come later =)

Ah, that's the kind of confirmation I was hoping for, thanks! Though if anyone has anything else to weigh in (specific considerations and the like) then feel free!

Similar Messages

  • What's most efficient for drawing a semi-transparent overlay?

    I have a large .TIF loaded as a RenderedImage through JAI and drawn with Graphics2D.drawRenderedImage(). It can be scaled by the user and it uses the JAI operator "Scale" to do it and is extremely fast given the size if the TIF (2528x3297).
    The problem comes when I need to take another image and use it as an "overlay". Only the red part of this image needs to actually be drawn, and that needs to have some transparency. The rest of the image should be completely transparent. I'm looking for a fast and efficient way of approaching both the drawing and scaling. Any type of image (supported by AWT/JAI at least) is acceptable, passing it through a filter at runtime to make the parts transparent or semi-transparent is fine too. I'm just looknig for a good methodology that will offer speed in both drawing and scaling in conjunction with the TIF mentioned earlier.
    I tried using a PNG that already had the desired transparency but it behaves oddly. If I load it as an Image using ImageIO.read() and then use drawImage() and getScaledInstanceOf() it draws relatively slowly, but just barely acceptable, but takes way too long to scale. If I load it as a RenderedImage with JAI and use drawRenderedImage() the painting is extremely fast when it's first loaded with no scaling and when i scale it it's fairly fast at scaling, but after it's been scaled it draws extremely slowly.
    I tried using a GIF but had pretty much the exact same issues as PNG. Slow scaling and decent drawing as an Image and quick scaling and drawing initially, but extremely slow drawing after it's been scaled.
    Strangely enough one of the best middle grounds I've seen in my experimentations was a .TIF I loaded in JAI, converted to BufferedImage, passed through a filter to make all white transparent and all black be red, and then drew as a BufferedImage.
    I'm totally lost and confused here. Could someone please help me out with some advice?

    Ah, that's the kind of confirmation I was hoping for, thanks! Though if anyone has anything else to weigh in (specific considerations and the like) then feel free!

  • Photo Management, what is most efficient and practical?

    I'm somewhat new to Macs. I have simply been downloading my digital photos directly to iPhoto, however, once in there, they are hard to manage, duplicate files are created. When you move photos, they need to be re-imported. Can someone tell me how they manage their photos, do you use iPhoto or simply import photos you want to edit or manipulate to iPhoto, etc....

    Hi,
    I'd get GraphicConverter gives way more options...
    http://www.macupdate.com/info.php/id/263
    The Browse folder is great, and so much more you can do with it.
    I dislike everything about iPhoto myself.

  • What's most effecient way to load dvd op sys to G-4 with only cd capab ?

    Have 2 Macs. Recently upgraded newer one to Tiger (full version). Would like to use my original 10.2.7 OS to load on my older machine but it only has CD capabilities. What's most efficient way to do this? (I'm assuming it's legal to do so since I bought a new version for my new machine).
    PowerMac3,6   Mac OS X (10.4.5)  

    Hi Bill, and welcome to the discussions.
    Since you purchased a version of Tiger for the newer Mac, what you want to do would not violate the spirit of the licensing agreement (one install per copy of the software).
    That said, what you want to do will likely violate the technical limitations of your original 10.2.7 installation DVD. Grey installation DVDs shipped with specific hardware only contain the drivers for that specific hardware. In other words, if the newer Mac is G4 MDD tower with FireWire 800 and a dual 1GHz processor, that's what the DVD will be expecting when it tries to install the system software. If your older machine is a G3 iMac, the DVD won't recognize the processor, CD drive, CRT monitor, or anything else on the logic board. It simply doesn't have the drivers required to support the different hardware.
    If the older Mac has FireWire, you can install your original 10.2.7 on it, but there's no guarantee it'll work. Here's how:
    1. Boot the old mac into Target Disk Mode (hold the T key while booting; when done, you'll get an orange FireWire icon bouncing around on a blue screen);
    2. Connect the computers using FireWire cable, and the old mac should mount as an external hard drive;
    3. Reoot the new mac from the 10.2.7 install DVD;
    4. When it comes time to select the destination for the install, select the old Mac;
    5. When finished, turn off both computers, and disconnect the FireWire cable;
    6. Restart the old mac, and if you're really luck, and the hardware on the two macs isn't too different, it'll boot to 10.2.7;
    7. Download the 10.2.8 Combo Update and install.
    Just remember: the greater the difference in hardware specifications between the two macs, the greater the likelihood that this will not work.
    Good luck!
    Andrew

  • Most efficient/quickest way to set NTFS permissions in PowerShell

    Hello all,
    Trying to figure out what the most efficient/quickest way to set NTFS permissions via PowerShell is. I am currently using ICACLS but it is taking FOREVER as I can't figure out how to make inheritance work with this command.
    This has prompted me to begin looking at other options for setting NTFS permissions in PowerShell, and I wondered what everyone here likes to use for this task in PowerShell?

    Ah ok. Unfortunately, my ICACLS is taking FOREVER. Here is the code I'm using:
    ICACLS "C:\users\[user]\Desktop\test" /grant:r ("[user]" + ':r') /T /C /Q
    However:
    1.  I can't figure out how to make the inheritance parameter work with ICACLS
    2. If I do make the inheritance parameter work with ICACLS, I still need a way to add the permission to child objects that aren't inheriting.
    Any tips on how to improve performance of ICACLS?
    1. icacls folder /grant GROUPNAME:(OI)(CI)(F)  (i will post corrected code later, this works in CMD but not powershell couse of bracers)
    2.  get-childitem -recurse -force |?{$_.psiscontainer} |%{icacls ....}  (or u can list only folders where inheritance is disabled and apply icacls just on them)
    I think jrv and Mekac answered the first question about inheritance flags. I would just add that you probably don't want to use the /T switch with icacls.exe because that appears to set an explicit entry on all child items (that's probably why it's taking
    so long).
    For your second question, I'd suggest using the Get-Acl cmdlet. It throws terminating errors, so I usually wrap it in a try/catch block. Something like this might work if you just wanted the paths to files/folders that aren't inheriting permissions:
    dir $Path -Recurse | ForEach-Object {
    try {
    Get-Acl $_.FullName | where { $_.AreAccessRulesProtected } | ForEach-Object { Convert-Path $_.Path }
    catch {
    Write-Error ("Get-Acl error: {0}" -f $_.Exception.Message)
    return
    If you're looking for speed/performance, you don't want to just use the PowerShell Access Control (PAC) module that Mike linked to above by itself. It's implemented entirely in PowerShell, so it's incredibly slow right now (unless you use it along with Get-Acl
    / see below for an example). I'm slowly working on creating a compiled version that is much faster, and I think I'm pretty close to having something that I can put in the gallery.
    Since I wasn't sure which command would give you the best results, I used Measure-Command to test a few different ones. Each of the following four commands should do the exact same thing. Here are my results (note that I just ran the commands a few times
    and averaged the results on a test system; this wasn't very rigorous testing):
    # Make sure that this folder and user/group exist:
    $Path = "D:\TestFolder"
    $Principal = "TestUser"
    # Native PowerShell/.NET -- Took about 15 ms
    $Acl = Get-Acl $Path
    $Acl.AddAccessRule((New-Object System.Security.AccessControl.FileSystemAccessRule(
    $Principal,
    "Read", # [System.Security.AccessControl.FileSystemRights]
    "ContainerInherit, ObjectInherit", # [System.Security.AccessControl.InheritanceFlags]
    "None", # [System.Security.AccessControl.PropagationFlags]
    "Allow" # [System.Security.AccessControl.AccessControlType]
    (Get-Item $Path).SetAccessControl($Acl)
    # PAC Module 3.0 w/ PowerShell/.NET commands -- Took about 35 ms
    $Acl = Get-Acl $Path | Add-AccessControlEntry -Principal $Principal -FolderRights Read -PassThru
    (Get-Item $Path).SetAccessControl($Acl)
    # icacls.exe -- Took about 40ms
    icacls.exe $Path /grant "${Principal}:(OI)(CI)(R)"
    # PAC Module 3.0 w/o Get-Acl -- Took about 350 ms
    Add-AccessControlEntry -Path $Path -Principal $Principal -FolderRights Read -Force
    Unless I messed something up, it looks like the native PowerShell/.NET commands are faster than icacls.exe, at least for modifying a single folder's DACL.

  • What is the most efficient (in terms of cost) way to transfer 35 mm slides to my iMac hard drive?

    What is the most cost efficient way to transfer 35mm slide images to my iMac hard drive?

    This gives you the basics
    http://www.tech-faq.com/how-to-copy-slides-to-disk.htm
    The first option, the professional one, isn't the cheapest - but the results should be good.
    The second option is very appealing. Some printers come with brackets that can be used to scan film or slides.
    The third option is a slide scanner. I haven't used this option, but there's a significant startup cost of under $100.
    In short, a scanner is the cheapest and most efficient option.

  • What is the best, most efficient way to read a .xls File and create a pipe-delimited .csv File?

    What is the best and most efficient way to read a .xls File and create a pipe-delimited .csv File?
    Thanks in advance for your review and am hopeful for a reply.
    ITBobbyP85

    You should have no trouble doing this in SSIS. Simply add a data flow with connection managers to an existing .xls file (excel connection manager) and a new .csv file (flat file). Add a source to the xls and destination to the csv, and set the destination
    csv parameter "delay validation" to true. Use an expression to define the name of the new .csv file.
    In the flat file connection manager, set the column delimiter to the pipe character.

  • With OS 10.4.11, what is the most efficient back up system?

    Using OS 10.4.11 on a PowerPc G5, what is the most efficient way to backup?

    Look at Mac Backup - Mac Backup Software, Hardware, and Guides for Your Mac http://macs.about.com/od/usingyourmac/tp/backuphub.htm and  Mac OS X data backup FAQ http://www.macmaps.com/backup.html  and Important Mac Backup Tips- Time Machine, CCC, SuperDuper http://mikosweb.com/it-advice-blog/70-mac-backup-tips Here's a list/description of Mac backup software http://www.pure-mac.com/backup.html
    The majority of Mac users use CarbonCopy Cloner @ http://www.bombich.com/software/ccc.html , or SuperDuper @ http://www.shirt-pocket.com/SuperDuper/SuperDuperDescription.html . You can also use or the Restore function of Disk Utility included in OS X.
    When you backup, boot into Safe Mode (depress the Shift key at startup) and the backup will be safer and faster.
     Cheers, Tom

  • PowerShell - what is the most efficient/fastest way to find an object in an arraylist

    Hi
    I Work with a lot of array lists in PowerShell when working as a sharepoint administrator. I first used arrays but found them slow and jumped over to array lists.
    Often i want to find a specific object in the array list, but the respons-time varies a lot. Does anyone have code for doing this the most efficient way?
    Hope for some answers:-)
    brgs
    Bjorn

    Often i want to find a specific object in the array list, but the respons-time varies a lot. Does anyone have code for doing this the most efficient way?
    As you decided to use an ArrayList, you must keep your collection sorted, and then use the method BinarySearch() to find the objects your looking for.
    Consider using a dictionary, and if your objects are string type, then a StringDictionary.
    You stil fail to understand that he slowness is no in the arraylist.  It is in the creating of the arraylist which is completely unnecessary.  Set up a SharePoint servefr and create a very large list and test..  You will see. An arraylist
    with 10000 items takes forever to create. A simple SharePoint search can be done in a few milliseconds.
    Once created the lookup in any collection is dependent on the structure of the key and the type of collection.  A string key can be slow if it is a long key.
    The same rules apply to general database searches against an index.
    The main point here is that SharePoint IS a database and searching it as a database is the fastesst method.
    Prove me wrong devil!    Submit!  Back to your cage! Fie on thee!
    ¯\_(ツ)_/¯
    You seem to be making a lot of assumptions about what he's doing with those arraylists that doesn't seem justified based on no more information than there is in the posted question.
    [string](0..33|%{[char][int](46+("686552495351636652556262185355647068516270555358646562655775 0645570").substring(($_*2),2))})-replace " "

  • What's the most efficient way to serve a file from a servlet?

    I have a servlet that does various different things depending on the needs. Sometimes it dynamically generates content, and sometimes all it does is send a file out, with no alteration.
    What is the most efficient way to just send a file?
    One option:
    OutputStream os = response.getOutputStream();
    InputStream is = new FileInputStream(...)
    (send all the bytes from is to os, the regular way using a buffer)Another option is to say:
    RequestDispatcher rd = response.getRequestDispatcher(fileName);
    rd.forward();Any other options? What's the prefered way of doing this?
    I know the rule of "don't optimize too early" but this is a situation where we need to get the maximum amount of files served with the hardware we have, and it's going to be a lot of static files, so efficiency is important.
    Thanks

    Ok, that's what I thought. It would be nice if there were a "response.sendStream(InputStream input)" method in the ServletResponse class. Even nicer would be a sendFile or sendChannel or something. This is probably a common usage and it's a place where the container has many opportunities for optimization. For example, it could call the operating systems send_file kernel call so the entire transfer would be done directly from the disk controller to the ether card (on systems that support that).
    For now I'll just do my own buffered copy.

  • I am giving my old MacBook Air to my granddaughter.  What is the most efficient way to erase all the data on it?

    I am giving my old MacBook Air to my granddaughter.  What is the most efficient way to erase the data?

    You have two options.....
    One is to do a clean reinstall of your OS - if you still have the USB installer that came with your Macbook Air...
    The second option is to create a new user (your granddaugher's name).....Deauthorize your Macbook Air from your Itunes and Appstore.....
    Restart your Macbook after you've created your granddaughter's user name, login under your granddaughter's username and delete your username.
    Search your Macbook for your old files and delete them.....
    Good luck...

  • What is the most efficient way to compare two Lists?

    List A{itemId,itemName} [1,xyz] [9,iyk] [4,iuo] .......
    List B{itemId,item price} [2,999] [9,888] [1, 444].......
    Assume A will be a much larger list than B
    I am trying to find all the items with same itemiId. what would be the most efficient way to do that?
    Thanks!

    Tinkerbell. wrote:
    BigDaddyLoveHandles wrote:
    You wrote:
    Can we assume that an itemId only occurs once in each list? You're the one making claims and assumptions, not me.No in #4 I asked the OP to verify an assumption.An assumption that couldn't possibly be true. Why are you wasting our time?

  • What is the most efficient way to have full access to the front panel on RT Labview?

    I have a RT machine that needs to do its job and also port the front panel to an external machine over the network. What is the most efficient way to do it? Using as little of the RT time as possible but providing full functionality to the RT front panel.
    So far I have been using it directly from Labview - running the VI on a remote (RT) and have the front panel on local Labview (WINDOWS). I know I can do it with also through WWW (not very happy with that though).
    LV2009 SP1.
    Thanks

    Running a compiled executable on the RT target, rather than running it within the development environment, is probably slightly more efficient but limits you to the web interface.  If you're running within the LabVIEW environment, I doubt there's a noticeable difference in efficiency from the RT perspective between the web server and the LabVIEW front panel, although that's mostly a guess (I would expect the RT system to send identical data in each case, once the front panel is loaded).  Those are your only options in modern LabVIEW versions.  In LabVIEW 7.1 you could build an executable that acted as the front panel for an RT system, but that feature does not exist in recent versions.  However, a quick search turned up this document with code to approximately duplicate that behavior, perhaps it will work for you?

  • What is the most efficient way to convert a static site to a responsive site using Dreamweaver?

    I need to convert an old site made in Dreamweaver to be responsive to any monitor size. What is the most efficient way to do this?

    Depending on what you have to work with and how it was coded, it might be doable and then again not.  Suffice it to say, there are no magic buttons that will do this for you. Also consider that mobile & tablet users interact differently with their web devices. So your navigation & forms must be finger friendly.  Also images & content must make mobile users happy without killing their dataplans.  There's a lot of planning that goes into making a good Responsive Web site.
    Nancy O.

  • What is the most efficient way to turn an array of 16 bit unsigned integers into an ASCII string such that...?

    What is the most efficient way to turn a one dimensional array of 16 bit unsigned integers into an ASCII string such that the low byte of the integer is first, then the high byte, then two bytes of hex "00" (that is to say, two null characters in a row)?
    My method seems somewhat ad hoc. I take the number, split it, then interleave it with 2 arrays of 4095 bytes. Easy enough, but it depends on all of these files being exactly 16380 bytes, which theoretically they should be.
    The size of the array is known. However, if it were not, what would be the best method?
    (And yes, I am trying to read in a file format from another program)

    My method:
    Attachments:
    word_array_to_weird_string.vi ‏18 KB

Maybe you are looking for

  • Unexpected line breaks in output of a sql query

    Hi, I have a query which looks like: set pages 0 set feed off set newp 0 set lines 350 select LPAD(SUBSTR(COLUMN1,1,23),23),LPAD(SUBSTR(COLUMN2,1,42),42), SUBSTR(TO_CHAR(START_TIME,'HH24:MI:SS'),1,8),SUBSTR(TO_CHAR(END_TIME,'HH24:MI:SS'),1,8) FROM TA

  • Screwed by Apple

    I am at wits end with Apple Customer service, and could use any advice. Here is what happened: 1) I ordered an ipad to ship to my brother for christmas. 2) On order confirmation, I realized the address was my old address in Houston, not my brother's

  • Apps will NOT show in my Mac Application Folder

    I have just bought Creative Cloud and I have already downloaded Photoshop CC and Dream Weaver when I had the trail but now since I bought it, it won't show the apps on my desktop making me unable to access them. I hope I didn't waist $200. Please hel

  • After effects cinema 4d lite

    I'm unable to launch C4D lite inside of After Effects. When I try to launch ,C4D lite will flash, on the upper header, for a second  but doesn't launch. Need help asap!

  • Problem - Unable to Sync

    Hey, Let me start off by saying that this is the first ever problem I have had with my iPod or iTunes since I bought it just before Christmas. Anyway, here's the crack... I have an 8GB iPod Nano and have used up 5GB or so. I am using the latest versi