Markus Posted September 21, 2008 Share Posted September 21, 2008 Hi, i took the time for some PixelGetColor actions and calculated the ratio. One "PixelGetColor" takes about 20ms! It musn't take more than 2 ms and i remember it doesn't with Windows XP. If it's really Vista's my hate will grow unendingly. "It's easier to disintegrate an atom than a prejudice." (A.Einstein)---------------------------------------------------------------------------My C++ - tools:Tidy tool-->indents your c++ sourceCleanscript --> cleans autoit-code before compiling (co-author: peethebee)My tools:GUIBuilder-->build your window and get the source; german versionMy Games:OnlineGameCenter-->Online Chess and Connect4 with a rtf-chatSnake-->including a level editor to build your own levelsTetris-->the well known game, big funOther things:Tower of Hanoi-->perfect riddler with graphic output Link to comment Share on other sites More sharing options...
Szhlopp Posted September 21, 2008 Share Posted September 21, 2008 Hi,i took the time for some PixelGetColor actions and calculated the ratio. One "PixelGetColor" takes about 20ms! It musn't take more than 2 ms and i remember it doesn't with Windows XP.If it's really Vista's my hate will grow unendingly.Show us how you calculated it.... RegEx/RegExRep Tester!Nerd Olympics - Community App!Login UDFMemory UDF - "Game.exe+753EC" - CE pointer to AU3Password Manager W/ SourceDataFiler - Include files in your au3!--- Was I helpful? Click the little green '+' Link to comment Share on other sites More sharing options...
Markus Posted September 21, 2008 Author Share Posted September 21, 2008 (edited) Very hard to calculate $init=TimerInit() For $i=1 To 480 PixelGetColor($i,$i) Next MsgBox(0,"","100%: " & TimerDiff($init) & @crlf & "Average: " & TimerDiff($init)/480) Edited September 21, 2008 by Markus "It's easier to disintegrate an atom than a prejudice." (A.Einstein)---------------------------------------------------------------------------My C++ - tools:Tidy tool-->indents your c++ sourceCleanscript --> cleans autoit-code before compiling (co-author: peethebee)My tools:GUIBuilder-->build your window and get the source; german versionMy Games:OnlineGameCenter-->Online Chess and Connect4 with a rtf-chatSnake-->including a level editor to build your own levelsTetris-->the well known game, big funOther things:Tower of Hanoi-->perfect riddler with graphic output Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted September 21, 2008 Share Posted September 21, 2008 This is because Vista doesn't have any hardware acceleration for GDI when WDM is used, see this, to speed it up you need to turn off Aero. .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
Markus Posted September 21, 2008 Author Share Posted September 21, 2008 disabled aero, its 0.04ms instead of 18ms "It's easier to disintegrate an atom than a prejudice." (A.Einstein)---------------------------------------------------------------------------My C++ - tools:Tidy tool-->indents your c++ sourceCleanscript --> cleans autoit-code before compiling (co-author: peethebee)My tools:GUIBuilder-->build your window and get the source; german versionMy Games:OnlineGameCenter-->Online Chess and Connect4 with a rtf-chatSnake-->including a level editor to build your own levelsTetris-->the well known game, big funOther things:Tower of Hanoi-->perfect riddler with graphic output Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now