Hmm... I do not see value in cleaning up projects (to free memory) when the user just switches between them back and forth. Especially in the light of worlds-in-worlds or background projects, this seems like an unreasonable path to follow. We should not make too much assumptions about application code or user needs at this point. There could always be a "Oh, please render that background project into this file. Oh, why is it so slow at the moment..." Cleaning up resources for save-and-quit, however, seems reasonable because it is at the environment's boundary and not some arbitrary in-image boundary. Best, Marcel
|
Hi Marcel,
|
Hi Eliot, okay. I added the clean-up to project switching and save-and/or-quit. All changes are in MorphicProject. See Morphic-mt.1397. Best, Marcel
|
If... - SystemWindows are holding lots of drop shadows - the shadow is only shown for the frontmost window - recreating the shadow only takes around 20ms Then SystemWindow>>#passivate seems
like a nice place to keep things tidy. Works fine for me. On 2/20/18 11:21 AM, Marcel Taeumel
wrote:
|
If you would put it in #passivate or #lookUnfocused, then the cache would not work for moving and re-focusing windows anymore. :-) I do not have more data to support my claims here. :-(
Updating the shadow for a 2516@1378 window takes 350 milliseconds on my, rather fast, machine. Best, Marcel
|
> On 20-02-2018, at 9:06 AM, Marcel Taeumel <[hidden email]> wrote: > > If you would put it in #passivate or #lookUnfocused, then the cache would not work for moving and re-focusing windows anymore. :-) I do not have more data to support my claims here. :-( > > Updating the shadow for a 2516@1378 window takes 350 milliseconds on my, rather fast, machine. Well therein lies the crux of the problem; why does it take so long and use so much memory? So far as I can see (on a 17650 image) the dropshadow form is the size of the entire window as expanded by the shadow offsets. That seems a bit excessive in size, build-time and display time. Surely the typical case would need 2 skinny Forms? tim -- tim Rowledge; [hidden email]; http://www.rowledge.org/tim Useful random insult:- He has a tenuous grip on the obvious. |
With some playing around with shadow related preferences and theme options it looks like there are some rather oddinteractions buried in there.
Turn on soft shadows from Extras-'Themes & Colors' and then pick a window. In its halo menu pick 'drop shadow'-'shadow offset' and move the indicator around. If I move it to the ~20 pixels range I see a strange mix of soft and hard shadow not to mention some 'interesting' visuals if I try to get shadows to the left of the window. tim -- tim Rowledge; [hidden email]; http://www.rowledge.org/tim Fractured Idiom:- MERCI RIEN - Thanks for nothin'. |
Just for the record: Hibernate/Unhibernate takes roughly the same time as to recompute a drop show for 2546@1392. It reduces the form's bits size to about 0.004 % because most of the shadow form are zeros. Thus, the would be only a small gain to choose "hibernate" over "discard". Not sure about all the BitBlt magic, but we could split the shadow form into multiple forms to reduce memory load. Yet, last time I checked, it took much longer so blit many forms for the shadow instead of one. Best, Marcel
|
Free forum by Nabble | Edit this page |