I have a Xojo application which runs blazingly fast on MacOS … and like a dog on Windows 10.
The relevant bit of code is this:-
for pYc = 0 to yMax - 1
for pXc = 0 to xMax - 1
dVal = b.ReadInt16 + bzero pval = (dVal /(dHigh - dLow)) * brightness rgbs.pixel(pXc, pYc) = RGB(pval, pval, pval)
Using a simple profiling method, I find that the main slowdown between MacOS and Windows 10 is the statement
dVal = b.readInt16 + bzero
MacOS - it runs in less than a second
Windows - it takes about 11 seconds for the same data.
Does anyone have any thoughts on why the disparity betweem MacOS and Windows ?