[Pharo-users] Can you help me find this info?

Ben Coman btc at openinworld.com
Mon May 2 13:08:01 EDT 2016

On Mon, May 2, 2016 at 5:30 PM, Victor RENE <victor-rene.dev at outlook.com> wrote:
> Hello,
> I am new to Pharo and would like to understand a few things.
> I can search by myself, but I do not know the code base yet, so:
> [Questions]
> Pharo vm (Cog/Spur):
>     Rendering loop

(Whoops, I notice too late you are asking about the vm.  For what its
worth, I send anyway what I wrote about the image side of rendering)

Within the Image, do "EllipseMorph new openInWorld"
then put a "self haltOnce" in EllipseMorph>>drawOn:
and select World > System > Enable halt/inspect once,
then in the debugger that appears, right-click to select "Full Stack".

Observe the sender chain...

Observe there are three implementors of fullDrawMorph:
  * Canvas
  * AthensCanvas
  * AthensCanvasWrapper

Canvas is the bitmap rendering.
Athens is vector rendering.

Scroll down the stack to see MorphicUIManager>>spawnNewProcess.
and also look for it's senders.

Open World > Tools > Process Browser to observe
the "(40) Morphic UI Process" created by #spawnNewProcess.

> and event loops.

In World > Tools > Process Browser,
select "(60) Input Event Fetcher Process"
and browse its call stack in the top-right pane.

> done with SDL2, where is the code?

I'm not familiar enough to comment

>     Message passing, object hierarchy lookup, where is the code?





cheers -ben

More information about the Pharo-users mailing list