Course of the channels is really slow in CC
I work on .net application and ran into an obstacle few performance. I have a simple method that runs through the layers of channel by index, captures the name of the channel that is indexed and if it corresponds to a predetermined variable, then it simple removes this channel. It works as written but is painfully SLOW. Being relatively new to programming, I thought it was just me and open ExtendScript to run a few test.
var docChannels = app.activeDocument.channels; for (i = 0; i < docChannels.length; i++ ){ alert(docChannels[i].name); }
To run this script in a document containing only the RGB channels plus 3 other alpha channels takes about 30-40 seconds. Running the same script modified to browse about 20 layers of document only takes about 5 seconds.
I don't know if it is a bug in Photoshop CC or not. I have not all versions prior to test. I can perform the programming method using a Try Catch statement and directly trying to delete the layer by name. This seems to work a little faster, but not by much and isn't really a good use of a Try Catch statement.
Any insight into this problem or a better way to impliment as my method of programming would be more appreciated.
I don't know about .net applications, but I think that the reason the javascript object Model can be slow when working with layers and layers it whenever you create an object layer, or channel all the properties of this object created. I think that the property of the histogram of construction is the main reason to slow down. It is that the document has a large canvas.
Action eating can be much faster because you can only get the property you require and do not create a DOM object and build the histogram. Try this to see if the names of channel more quickly.
function getProperty( psClass, psKey, index ){// integer:Class, integer:key var ref = new ActionReference(); if( psKey != undefined ) ref.putProperty( charIDToTypeID( "Prpr" ), psKey ); if(index != undefined ){ ref.putIndex( psClass, index ); }else{ ref.putEnumerated( psClass , charIDToTypeID( "Ordn" ), charIDToTypeID( "Trgt" ) ); } try{ var desc = executeActionGet(ref); }catch(e){ return; }// return on error if(desc.count == 0) return;// return undefined if property doesn't exists var dataType = desc.getType(psKey); switch(dataType){// not all types supported - returns undefined if not supported case DescValueType.INTEGERTYPE: return desc.getInteger(psKey); break; case DescValueType.ALIASTYPE: return desc.getPath(psKey); break; case DescValueType.BOOLEANTYPE: return desc.getBoolean(psKey); break; case DescValueType.BOOLEANTYPE: return desc.getBoolean(psKey); break; case DescValueType.UNITDOUBLE: return desc.getUnitDoubleValue(psKey); break; case DescValueType.STRINGTYPE: return desc.getString(psKey); break; case DescValueType.OBJECTTYPE: return desc.getObjectValue(psKey); break; case DescValueType.LISTTYPE: return desc.getList(psKey); break; case DescValueType.ENUMERATEDTYPE: return desc.getEnumerationValue(psKey); break; } }; var channelCount = app.activeDocument.channels.length; var channelNames = []; for(var channelIndex=1;channelIndex<=channelCount;channelIndex++){ channelNames.push(getProperty(charIDToTypeID("Chnl"),charIDToTypeID("ChnN"),channelIndex)); } alert(channelNames);
Tags: Photoshop
Similar Questions
-
What to do if the Ipad is really slow and unresponsive fast?
My ipad is really slow, not in response to normal speed and lose battery charge soon as usual!
CAN HELP SOMEONE, IT WILL BE APPRECIATED!
Thank you
Try to reset all the settings in the settings under general app and in the right column under restore.
Try stories reset and delete/reset the caches in all web browsers you use.
If you use Safari, these features may be in the application settings under Safari.
Other browsers have their settings inside the running application itself.If your iPad has been activated for iCloud, in the application settings under iCloud, to the right, under iCloud Drive, type in iCloud drive and make sure that Safari is off to save data from Safari to iCloud by car.
Also, under iCloud in the application settings, in iCloud Drive, turn the feature off saving for all other desired apps DO NOT the data automatically on iCloud drive.
If you are using Safari is always causing issues.
Try changing / using web browser third another, different.
I do not use iOS Safari too much more because I found it cause me headaches on some Web sites, regularly, to visit.
I commonly use another third party browser, perfect browser (there are others that can suit your style better web browsing, so look all first to see what third-party browser may work better for you) and I have never experience many questions that Safari was originally.In the application settings tab general, right under the spotlight sesrch, try disable the search under the applications who really don't need a research, as some games, remote controls, apps that are really useless to be searched, etc., in order to reduce the list to Spotlight search.
Try to turn the reduced movement.
This is found in the application of settings in the general tab, in the left panel.
In the right panel, look under accessibility, look to reduce the Motion and turn this feature "On".
You should see a significant performance increase on all models of iPad 2, 3 and 4.In the application settings under the general tab, in the right column, search background App update and enable this setting to "off".
If you find my phone turned on, you can try to disable in the application of parameters to changes in performance seemif.
Try a reset of your iPad by simultaneously pressing buttons Home and sleep/wake button until your iPad goes to the dark and restarts with the Apple logo, then release the buttons.
Good luck! -
SideWinder x 8 mouse. The games are really slow and jumpy.
I just installed a Sidewinder x 8 mouse. The mouse works fine but when I try to play games that they are really slow and jumpy. They work fine when I switch to my original mouse. I have Windows Vista, my system processor clocked at 1.6 GHz and 1024 MB of memory. What should I do to get the games working correctly? The games I play are ones on King.com
Hi Pod1987,
Welcome to the Microsoft Answers site.
We would like to get a better understanding of this issue, so we can better help not only you but other users with similar problems.
(a) you are able to play other games other than those of king.com online using your Sidewinder x 8 mouse?
(b) what version of Vista are you using? (32-bit or 64-bit)?
Step 1:
For the 32-bit version of Vista. Download and install the software for the mouse Sidewinder x 8 on the site mentioned below.
For the 64-bit version of Vista. Download and install the software for the mouse Sidewinder x 8 on the site mentioned below.
Step 2:
Mouse SideWinder x 8 if used to play the high end so games I suggest you to update the Flash player on the Web site of the Adobe Flash Player. Click on the link below.
http://get.Adobe.com/flashplayer/
Thanks and regards.
Thahaseena M
Microsoft Answers Support Engineer.
Visit our Microsoft answers feedback Forum and let us know what you think. -
Removal of the channels is incredibly slow
Photoshop CC 2014 with all updates. My script records two songs in two channels. In the end, I delete the channels using the following function.
function deleteChannelByName (channelNameToDelete) {}
var channelRef = activeDocument.channels.getByName (channelNameToDelete);
channelRef.remove ();
}
When I run the script in the Script IDE extend and call this function to delete a channel containing a selection with a green progress bar and the title of «Reconstruction histogram...» ", a dialog box appears new, yes 9, times. It is clear a channel an incredibly slow operation. I do something wrong or is it just like that? Thank you.
Hello
Gives it a try and let me know if it's faster:
function deleteChannelByName(channelName) { var desc = new ActionDescriptor(), ref = new ActionReference(); ref.putName( stringIDToTypeID("channel"), channelName ); desc.putReference( stringIDToTypeID("target"), ref); executeAction( stringIDToTypeID("delete"), desc, DialogModes.NO ); } // deleteChannelByName("aChannelToDelete");
Kind regards
Davide Barranca
---
www.davidebarranca.com
www.cs-extensions.com
-
The system is really slow. Help!
Since I did the update my computer is SUPER slow! If I click on anything whether the circle will turn for a few minutes. It's very frustrating. I closed and reset my modem. But it doesn't seem to work. Help, please! Before I pull my hair.
Try each of them in order. A test to see if the computer works properly:
- Reset the PRAM
- Reset the controller (SMC) system management
- Start the computer in Safe Mode, and then restart normally. It's slower than a standard home.
- Repair the disk by booting to the HD recovery immediately after that the chime press the command and R keys until the Utility Menu appears. Choose disk utility and click on the continue button. Select the withdrawal (usually Macintosh HD) volume entry of the list to one side. Click first aid button in the toolbar. Wait the fact button appear. Disk utility and return in the Utility Menu. Restart the computer from the Apple Menu.
- Download and install the update of OS X El Capitan 10.11.6 Combo.
- Reinstall OS X by booting from the Recovery HD using the command and R keys. When the Utility Menu appears, select reinstall OS X and then click on the continue button.
-
The VMs are really slow (solved)
I solved this problem by myself: I installed then disabled Hyper-V and it fixed Workstation
Hello
First of all, I spent hours on google to find a solution without success.
When I install a program for example (even lite one), it may take up to 30 minutes to finish.
Virtual machines are not lag (for example the mouse works well) but are slow to take action, to run programs.
To stop a new simple installation of a windows virtual machine, it takes 10 minutes to do.
I use last trial version of VMWare Workstation.
My pc settings:
. Processor: Intel® Core™ i5 4570 s (quadruple-heart - 3.7 GHz)
. RAM: 16 GB PC12800 (1600 MHz) Corsair Vengeance DDR3
. OS: Windows 10 Pro (64-bit)
. Motherboard: ASUS Z87 - Pro C2
. Power supply: Corsair HX850i 80 + Platinum
. Storage: Samsung SSD Pro 850 128 GB (OS) + 2xWD Black 3 to SATA 6 Gbps (where virtual machines are stored)
. Internet: CAT5e cable to VDSL2 Vectoring 100 MB Ethernet
Here's what I've tried:
-Virtual drives are stored on a single file
-virtual drives defragmented
-Runing a single vm
-VMware Workstation Procces priority to high value
-more than disc 20% free space on the guest and host
-Even if the use of the cpu and ram are ok, I tried to add more CPU and more RAM on vm
-Turn off the AV on the host (and not av on the virtual machine)
-Performance power running on the host and the VM
-VMware tools installed and up-to-date
-Wide screen saver
-VMware Workstation installed on an SSD and VM stored on a Western Digital Black 3 TB drive
-My HARD drive are new, but I ran a test INTELLIGENT with the official tool of WD and the test is successful, the HARD disk is not fragmented.
-Tried both x 86 and x 64 Windows VM (x 64 host)
-delete snapshots
-Even though I have no performance problem on my host, I closed all the apps runing
-I don't use bound vm
-Had the same problem on my old computer (I only kept my previous my ssd with the operating system installed on host PC)
-Run Workstation as an administrator
-Use préallouées
I can copy filed up to 140 Mbps on my hard drive, so that it works fine, but when you use VMware workstation, write speed is stuck to 7MBps, when virtual machines running 1 or 10
One thing to note: my CPU not hyperthreading. But I had one before with this option has got the same problem.
It would be nice if you could help me, I'm stuck with this problem.
Thanks for the reply, but unfortunately it does not solve my problem.
I have already tried everything this KB except the line
mainMem.useNamedFile = "FALSE".
but this does not solve my problem either.
Here's some useful information:
-Run Workstation as an administrator
-My HARD drive are new, but I ran a test INTELLIGENT with the official tool of WD and the test is successful, the HARD disk is not fragmented.
-To stop a new simple installation of a windows virtual machine, it takes 10 minutes to do.
-I can copy filed up to 140 Mbps on my hard drive, so that it works fine, but when you use VMware workstation, write speed is stuck to 7MBps, when virtual machines running 1 or 10
-It takes about 2 min to suspend a virtual machine
EDIT: I solved this problem by myself: I installed then disabled Hyper-V and it fixed Workstation
-
The rendering is really slow on my new rMBP
Hello world!
So I bought a new MacBook Pro of the retina with the following specifications: Intel Core i7, 8 GB of Ram, 256 SSD HD and NVIDIA GT 650 m 1 GB
This is the first time I have a powerful machine and during the rendering of a twixtor animation in AE, rendered goes pretty slowly. I mean it ' s a laptop from £2000 with pretty good record, should not faster? In any case, I can accept this question to a certain level.
But if I did slide my original clip in my composition (without any changes/effects applied) and try to scroll to see where to begin my effects, it does not play the video at its original fps. Is this normal?
Are there software options I can choose to push for better performance?
eatChocolat wrote:
I'm just really supprised AE cant read a clip to its orignal speed setting when well even the clip has not been changed
This is because you are pregnant AE behaves as a non-linear editing - which he isn't. A NLE is specifically designed for playback of a video stream. After Effects (and flame, Fusion, Shake, etc) all pixel-based image processing applications that behave very much like Photoshop. They calculate the values of each pixel in each image, came up with a new pixel and then read the pixels.
AE and other applications of pixel-based composition, always work internally with the completely uncompressed pixel data. NLE relies on codecs, compression and, in some cases, hardware, playback of the video.
This is a very simplified version of what's going on under the hood, but I hope it makes sense.
There is some more information about the preview here.
-
I can't fix it
A list for you to check in order to have a good working computer...
1. is your computer up to date, including the level of service packs.
If this isn't the case, please do.2. do you have any AV (anti-virus) program installed for the protection?
If not, I recommend one of the following: they are free.
Avast Home Free Edition:
http://download.CNET.com/avast-free-antivirus/3000-2239_4-10019223.htmlScurity Microsoft Essentials:
http://www.Microsoft.com/security_essentials/default.aspxNote: choose only one. Do NOT install both.
3. did you regular maintenance for your computer?
If this isn't the case, here are a few to-do-list:
Disk Cleanup:
http://www.Vistax64.com/tutorials/76073-disk-cleanup.htmlScheduled disk defragmentation:
http://www.howtogeek.com/HOWTO/Windows-Vista/configure-disk-defragmenter-schedule-in-Windows-Vista/Checking file system:
http://www.Vistax64.com/tutorials/66978-system-files-SFC-command.htmlThe above is not the only things to do, just the essential list.
-
Make the desktop gadgets really slow down your computer? __
I have several on my desk, varies it just on your computers memory, speed etc? In the Task Manager it shows like sidebar.exe runninng 49 112 memory, is that a lot? For example, it is the same use as my browser.
If you have enough current execution, it could possibly affect performance, but all depends on how many resources use gadgets. If you have an old PC with not much RAM, which would also increase the possibility.
MVP - Windows desktop experience -
Internet connection over wireless on my laptop is really slow
The wired office is fine but when you connect to the internet on the computer toshiba laptop wireless, the speed is really slow.
Do I need a software upgrade or something like that?
Any help would be appreciated.
I have had no problem like this before and the computer laptop wireless, the internet has been slow for about a week now. Thanks in advance.Hello
I put t know what you use the WLan card, but update the WLan driver is a very good option.
You should definitely try to remove the old dryer and install the latest version of the WLan driver -
Final Cut Switcher... First is really slow or?
Hi guys, play with the PP for several days now. Im not expecting miracles, but the software seems really slow... Hangs at the images... crashes when you move a film around the canvas... just really bad performance. Heres so the specs on my Mac:
IM wondering if I missed somewhere on the system set up... it can't always be that way... I hear too many good things about the program. Please guide me in the right direction for the positions and the system put in place etc... Thanks a lot guys
I'm using a new Nvidia 4000 card for mac and PP5.5
Hardeware:
Model name: Mac Pro
Model ID: MacPro4, 1
Processor name: Intel Quad - Core Xeon
Processor speed: 3.32 GHz
Number of processors: 1
Total number of Cores: 4
(By heart) L2 cache: 256 KB
L3 Cache: 8 MB
Memory: 12 GB
Processor speed of interconnection: 6.4 GT/s
GFX card:
Chipset model: NVIDIA Quadro 4000
Type: GPU
Bus: PCIe
Slot: Slot-1
The PCIe track width: x 16
VRAM (Total): 2048 MB
Provider: NVIDIA (0x10de)
Device ID: 0x06dd
Revision ID: 0x00a3
ROM revision: 3581
Exhibition:
Cinema:
Resolution: 1680 x 1050
Per pixel: 32-bit color (ARGB8888)
Display serial number: 2A6222V8UFZ
Main screen: Yes
Mirror: Off
Online: Yes
Rotation: support
Cinema Display:
Resolution: 1680 x 1050
Per pixel: 32-bit color (ARGB8888)
Mirror: Off
Online: Yes
Rotation: support
Just got the phone with Adobe... It turns out that My WACOM tablet is the problem. I removed the Tablet (that I always used for gestures (not supported in Adobe World) and plugged a wired mouse at low prices and the stalls disappeard. The person tech told me that dosent PP5.5 as a wireless mouse.
Tested and am now in the field of learning.
-
I've upgraded to version 9.1 and it is really slow when I turn on my computer. 8 it charge it really fast... Now it freezes and when I move my mouse it takes about 1 minute before it will allow me to scroll to the top. One of my toolbar does not work now.
My system is Windows Vista Home Premium
Gateway laptop.Check if they have an updated version to be compatible with Firefox 9.
Also make the suggestions mentioned in the following article:
Check and tell if its working.
-
Windows Server 2008 R2 gets really slow, loses the connection, network printers.
I have a Windows Server 2008 R2, Dell PowerEdge T610 which very often at a time, it is really slow, loses the connection to all network printers and network resources are limited. We check scheduled task, updates of Windows and go on throughout this period. We check the event viewer, and there is nothing extraordinary. Does anyone have any ideas or suggestions?
Hello
Sorry for the inconvenience that you are experiencing.
Since we are unable to help you better on the problems associated with Windows Server 2008 R2. Our TechNet team have the expertise to help guide you accordingly.
That's why I ask you to please get in touch with our TechNet support team to resolve the issue.
I appreciate your cooperation in this regard.
Hope this will answer your query.
-
I did the update to Windows now, it is really slow.
Original title: Windows 7
I did the update to Windows now, it is really slow. He has been before lighting I've tried everything I can think of. Upgrade to Windows 10 would be useful
There is no way I can be sure, but I doubt that it would be useful.
The worst time to do an upgrade is when you run into problems. One such update is more likely to exacerbate problems that in order to solve them.
-
Dreamweaver really slow when it is connected to the server and then hangs?
I traced my server site as a network drive and when I add as a site in Dreamweaver, it is REALLY slow and it was only in code view, split and design views are basically usable UN - it will also crash when I try to save a file.
Any help is massively appreciated - thank you,
James
Hello
I know that some people do not have this, but it is not recommended.
Everything depends on the latency of the network and "dead time", if the latency is too high, (perhaps by your page referencing external scripts (e.g. jQuery) then this can make the latency problem a very visible thing and slow Dw.) This is because your server has 'get' the file referenced externally before offering the file for you (by dry weight), even if your page shows the link, the server sends the entire file, if you can't "see" it.
Save the file, can (and is) occasionally hang a program like Dw, especially when the server attempts to send the file to you and saving the file on the server at the same time.
Using this type of editing is your decision.
PZ
Maybe you are looking for
-
Hi, tried to go on the the NBC application page, but it does not show the app to download on my MAC. tried to go to Apple store did not find NBC app it is Any help out there? They said that this was the way to disseminate the Olympic swimming events
-
HP Pavilion g6-1365sl: upgrade CPU of my HP Pavilion g6-1365sl
Hi everyone, I would like to upgrade my HP Pavilion 1365sl g6 (B960) processor. Research on the web, I found different maintenance and Service of Guide for g6, in the report below: http://h10032.www1.HP.com/CTG/manual/c03094322 (this is the first tim
-
How can I open the back of my 1103735dx mini?
I need to get the serial number, and it is not obvious how to get it open!
-
Shared folder permissions lost after several hours
Hello I have problems with a shared drive mapped, sitting on a Forefront TMG server on the same domain. The problem is that I had access to a folder on the TMG server logs. Everything works very well for about 6 hours and then I lose access and I get
-
How can I turn off the light of my Aspire V5 471PG keyboard?
Hello I bought an Aspire 471PG-53338G50Mass V5 and I am so happy, but I would like to save more battery and I was wondering if I can disable the bright keyboard for a while and then activate when I need, is that possible? If so, how can I do? Thanks