I´m not an native english speaker so sorry about my grammatical mistakes.
That´s right, i have two pc, one abandoned desktop PII 400 mhz, w2k, 256 mb ram with macro scheduler 11 and a notebook with intel i3 core m370 2400 mhz, two cores, four logical cores, 2ghz ram, W7 with macro scheduler 13 eval. The script runs "on" a graphic in java, both have the same versión installed, 1.6.0_31, here is:
Label>start
Message> start
Wait>6
Let>ColorConexionBuena=52882
Let>ColorConexionRegular=303852
GetPixelColor>22,660,EstadoConexion
If>{(%EstadoConexion% = %ColorConexionBuena%) OR (%EstadoConexion% = %ColorConexionRegular%)}
GoTo>ConexionOk
Else>
GoTo>start
Endif
label>ConexionOk
Let>colorpro=16771031
Let>blanco=16777215
Let>negro=0
Let>grey=13550267
Let>colorbv=9474192
Let>yposLimSuperior=215
Let>yposLimInferior=619
Let>xpos1=1109
Let>ypos1=%yposLimSuperior%
Let>xpos2=1109
Let>ypos2=%yposLimInferior%
Let>xpos3=1176
Let>ypos3=%yposLimSuperior%
Let>xpos4=72
Let>ypos4=143
Let>xpos5=1107
Label>cuentaarriba
Let>ypos1=%ypos1%+1
GetPixelColor>%xpos1%,%ypos1%,vColor1
If>ypos1=%yposLimInferior%,start
If>vColor1=%blanco%,cuentaarriba
If>vColor1=%colorpro%,cuentaarriba
Message>cuenta arriba finished
Wait>2
If>vColor1=%colorbv%,cuentaabajo
Label>cuentaabajo
Let>ypos2=%ypos2%-1
GetPixelColor>%xpos2%,%ypos2%,vColor1
If>ypos2=%yposLimSuperior%,start
If>vColor1=%blanco%,cuentaabajo
If>vColor1=%colorpro%,cuentaabajo
Message> cuenta abajo finished
Wait>2
If>vColor1=%colorbv%,buscapro
Label>buscapro
Let>ypos3=%ypos3%+1
GetPixelColor>%xpos3%,%ypos3%,vColor1
If>ypos3=%yposLimInferior%,start
If>vColor1=%blanco%,buscapro
Message>buscapro finished
Wait>2
...
...
GoTo>start
The function of this script is to "scan" the graphic until it finds one determined colour, and then do some tasks. This is a simplified version with messages instead of actions to debug it.
So, when i run this scrip it in the old pc, it takes almost half of the time to finish than the new notebook, especially the "scanning" lines (after label cuentaarriba)¿?W¿?. The screen resolution is 800x600 for the PII and 1280x720. In the old one i set the variables to adap the smaller screen.
So I install Ms 11 in the new one, and the same thing, much slower. Then i run in compatibility mode with w2k, and the same. I set the program (ms) to use only one core, keep runnig slow.
The question is, why?
Thanks
How is this possible? Script run faster on PII than i3core
Moderators: JRL, Dorian (MJT support)
- Phil Pendlebury
- Automation Wizard
- Posts: 543
- Joined: Tue Jan 16, 2007 9:00 am
- Contact:
You have answered your own question. The screen resolution is larger on the new machine so there is more to search.
Having said that there may be other reasons. And of course this whole thing is much faster in v13 anyway.
Having said that there may be other reasons. And of course this whole thing is much faster in v13 anyway.
Phil Pendlebury - Linktree
It´s only 120 pixel wide more, since the script run a vertical scan in only one x position, wich is irrelevant with a machine at least 20 times faster in performance.Phil Pendlebury wrote:You have answered your own question. The screen resolution is larger on the new machine so there is more to search.
Having said that there may be other reasons. And of course this whole thing is much faster in v13 anyway.
I found someone who has the same problem with a different program in a very similar laptop:
https://groups.google.com/a/googleprodu ... mZbDOM3VHA
Is w7 configuration or laptop issue. I´ll keep researching.
- Phil Pendlebury
- Automation Wizard
- Posts: 543
- Joined: Tue Jan 16, 2007 9:00 am
- Contact:
Having said that there may be other reasons. And of course this whole thing is much faster in v13 anyway.
Phil Pendlebury - Linktree