6.03 LTS beta 5 - ResizeImage(...#PB_Image_Smooth) 4 times slower than before

Mac OSX specific forum
868Mhz
New User
New User
Posts: 9
Joined: Sat Aug 19, 2023 6:44 pm

6.03 LTS beta 5 - ResizeImage(...#PB_Image_Smooth) 4 times slower than before

Post by 868Mhz »

Hi,
in the new beta5 on m1 Mac + C compiler, ResizeImage in Smooth mode is about 4 times slower
than in the previous versions.

Small testcode:

Code: Select all

CreateImage(0, 2304, 1152)
t1 = ElapsedMilliseconds()
ResizeImage(0, 768, 393, #PB_Image_Smooth)
t1 = ElapsedMilliseconds() - T1
MessageRequester("", Str(t1))
With debugger disabled, this takes around 27ms on my computer with 6.03 beta 4 and previous versions,
6.03 beta 5 needs about 105ms.

Any chance to get the "old" speed back?
Fred
Administrator
Administrator
Posts: 18220
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: 6.03 LTS beta 5 - ResizeImage(...#PB_Image_Smooth) 4 times slower than before

Post by Fred »

I just checked, we didn't changed anything about ResizeImage(), can anybody else confirm the slowness ?
jamirokwai
Enthusiast
Enthusiast
Posts: 798
Joined: Tue May 20, 2008 2:12 am
Location: Cologne, Germany
Contact:

Re: 6.03 LTS beta 5 - ResizeImage(...#PB_Image_Smooth) 4 times slower than before

Post by jamirokwai »

Hi,

tried with PB 6.02 ARM with and without debugger on my M2 Max MacBook with 32 GB Ram on macOS Ventura 13.5 and cannot confirm.

PB 6.02 53 ms
PB 6.03b5 55 ms

Just for fun... the snippet is about 20% faster on x64 under M2 :-O
PB 6.02 Intel 43 ms
Regards,
JamiroKwai
User avatar
mk-soft
Always Here
Always Here
Posts: 6246
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: 6.03 LTS beta 5 - ResizeImage(...#PB_Image_Smooth) 4 times slower than before

Post by mk-soft »

No Problem here ...

Mac MIni 2018 (Intel)
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
868Mhz
New User
New User
Posts: 9
Joined: Sat Aug 19, 2023 6:44 pm

Re: 6.03 LTS beta 5 - ResizeImage(...#PB_Image_Smooth) 4 times slower than before

Post by 868Mhz »

Thanks for testing.
Hm, so I have no idea why it is so slow on my computer.
It is a Mackbook Pro with 16GB Ram + M1 Pro processor. I have tried it with and without threadsave, with and without optimize,
from within the IDE and as executable and it is always the same on my system.

If anyone got an idea what else to test, I am all ears.
868Mhz
New User
New User
Posts: 9
Joined: Sat Aug 19, 2023 6:44 pm

Re: 6.03 LTS beta 5 - ResizeImage(...#PB_Image_Smooth) 4 times slower than before

Post by 868Mhz »

Hi, just checked again with different PB versions.
My statement about versions before 603B5 was wrong. The slowdown started after version 601LTS.
602B2 was a little bit slower than the versions before, since 602LTS it is the same for all following versions ->
~4 x slower than 601LTS.

Sorry for the confusion.
Post Reply