SRL Archive - OSR Help

Color gathering speed Simba vs. C++ plugin


bbri06

2010-06-17 20:36:28

I'm working on a project right now that gathers a lot of colors from the main screen and records info about them and to do so in Simba creates a lot of lag, usually around 20 seconds if it's collecting the whole main screen's data(I'm running a 3.0ghz dual core). If I were to create a plugin, written in C++, to do this would the time difference be significant? Is it possible to give me an estimate on the time? Collecting every pixel for the entire main screen amounts to 171,009 pixels collected, fyi.

nielskool

2010-06-17 21:19:17

In my DTM Scanner I retrieve the color of every pixel.
It just depends on what you want to do.
If i make an array of array of integer(Arr[y][x]/Arr[x][y])
Then it only takes 2 seconds(maybe less) to fill the array in delphi.
So i quess it would be faster.

bbri06

2010-06-17 21:50:49

Oh, fantastic. Thanks.