[squeak-dev] Idle MVC RootProject is very CPU hungry
tim Rowledge
tim at rowledge.org
Sun Apr 12 17:42:01 UTC 2020
> On 2020-04-12, at 8:57 AM, Vanessa Freudenberg <vanessa at codefrau.net> wrote:
>
>
> We did add delays to the menu loops etc. many years ago. Sounds like ScreenController needs that, too?
Looks like it; I think the problem is that the controlLoop is basically
do I want control
while true
do control stuff
AND only the `do control stuff` has any attempt at yielding etc. So in a plain empty screen we end up with a furious whizzing around of trying to find an active controller, not finding one (because the ScreenController is not active unless a mouse button is pressed) and looping through all that ControlManager stuff that wants to find something, anything, please-I'm-bored, to do.
So maybe something something, only screencontroller in the list of scheduled controllers, something, interactivityPause, something something?
tim
--
tim Rowledge; tim at rowledge.org; http://www.rowledge.org/tim
"!" The strange little noise you make when you can't scream...
More information about the Squeak-dev
mailing list
|