Page 1 of 1

Windows: Constant access to ICC profiles?

Posted: Wed Apr 22, 2015 11:15 am
by malte
Hi,

it appears that the engine constantly accesses the ICC Profiles on Win, instead of doing it once and then caching the result. Is this intended behaviour? I have no idea how much this affects performance, however this seems a little unreasonable to me.

Attaching screenshot of the monitoring.

Re: Windows: Constant access to ICC profiles?

Posted: Thu Apr 23, 2015 4:02 pm
by LCMark
@malte: The engine isn't doing that directly - the only direct interaction it has with ICC profiles is when an image is opened and unpacked for display, and only then if it actually has an ICC profile in it. Therefore, I'd imagine this is being caused indirectly by a WIn32 API - potentially to do with rendering. Is the stream continuous? Or only when the engine is doing specific things?

Re: Windows: Constant access to ICC profiles?

Posted: Thu Apr 23, 2015 8:44 pm
by malte
Hi Mark,

it does seem to do it only for certain stacks (not empty ones) but then moving the mouse over it is enough. The stream is continouus. Many many requests every second.

Re: Windows: Constant access to ICC profiles?

Posted: Thu Apr 23, 2015 8:54 pm
by malte
Actually I was wrong. Having an empty stack and doing for example a mousedown in it is enough to trigger...

Re: Windows: Constant access to ICC profiles?

Posted: Thu Apr 30, 2015 5:05 pm
by malte
Is it worth investigating further here?
I assume getting rid to a couple of 100 calls to the ICC profile a second could make a difference in rendering speed?

All the best,

Malte

Re: Windows: Constant access to ICC profiles?

Posted: Thu Apr 30, 2015 6:05 pm
by LCMark
I had a quick look at this - the access is occuring each time part of a LiveCode window is redrawn. LiveCode renders content into a special type of system bitmap which is then blitted to the window. I'd imagine that there wouldn't be a great deal to gain here - the time it takes to render graphics is usually the predominant factor; however we can take a look at caching these temporary bitmaps and see if it has much effect.

I don't suppose you happen to have a nice stack which measures framerates? :)

Re: Windows: Constant access to ICC profiles?

Posted: Thu Apr 30, 2015 8:00 pm
by malte
Hey Mark,

if that can be solved in a stack I am really happy to help...

As far as it can, AE tries to calculate framerates, and if I recall correctly it was rather simple to report the framerate of the animation. If that is accurate though is a different story. If you want me to try something, I'd love to give it a shot..

Re: Windows: Constant access to ICC profiles?

Posted: Thu Apr 30, 2015 8:30 pm
by malte
For what it's worth :-D

[edit]Added attachment[/edit]

Re: Windows: Constant access to ICC profiles?

Posted: Tue May 05, 2015 11:00 am
by malte
I made a stack with a little more action...

go stack URL "http://www.derbrill.de/testFrames.livecode"

(can not attach because it is a little too large)

Best,

Malte