[Cuis-dev] Morphic glitches out/hangs when adding faulty code to drawOn method on morphs that step

Juan Vuletich juan at cuis.st
Mon Dec 19 14:17:36 PST 2022


I just realized we're creating an exception handler for each morphic 
cycle, and that's not really needed. I just pushed an update that should 
have some positive impact on performance on slower hardware. Hopefully, 
I didn't add new annoyances.

BTW, Alan, what you're doing in your step method, #add: and 
#removeFirst, are pretty expensive, and it can be made cheaper, by just 
changing which indexes you map to X coordinates.

Cheers,

On 12/19/2022 5:57 PM, Alan Dao via Cuis-dev wrote:
> Awesome, thanks for the update! Just pulled the latest changes and can 
> confirm the fixes are working.
>
> Best,
> Alan
>
> On Mon, Dec 19, 2022 at 9:50 AM Juan Vuletich <juan at cuis.st 
> <mailto:juan at cuis.st>> wrote:
>
>     Hi Alan,
>
>     Hey, thanks! This really helped.
>
>     I could reproduce the problems you saw, and I found a couple of
>     subtle
>     bugs. Fixes are now at GitHub. Keep them coming!
>
>     Thanks,
>
>     On 12/18/2022 4:20 AM, Alan Dao via Cuis-dev wrote:
>     > Hey Juan,
>     >
>     > So for a mistake on my end, I didn't realize updates from Git
>     had to
>     > be explicitly installed.. after installing the updates and doing
>     your
>     > test-case, I can see there's no glitches.
>     >
>     > Unfortunately, my morph, BebopTransform, still hangs Morphic
>     when I do
>     > the below test case. If you have spare time, I've attached my
>     package,
>     > named Bebop, for you to reproduce. I apologize in advance if my
>     morph
>     > is not implemented correctly.
>     >
>     > - Repos are pulled
>     > - Started fresh Cuis.
>     > - Installed updates.
>     > - Loaded package 'Bebop'
>     > - World / New morph... / Vector Graphics / BebopTransform
>     > - In BebopTransformGraphLine >> drawOn:, add "aCanvas
>     drawString: 1.0
>     > at: -13 @ 58 font: nil color: Color brown."
>     >
>     > It looks like Morphic only hangs when we create BebopTransform and
>     > then modify drawOn: later on.
>     >
>     > Best,
>     > Alan
>     >
>
>     -- 
>     Juan Vuletich
>     cuis.st <http://cuis.st>
>     github.com/jvuletich <http://github.com/jvuletich>
>     researchgate.net/profile/Juan-Vuletich
>     <http://researchgate.net/profile/Juan-Vuletich>
>     independent.academia.edu/JuanVuletich
>     <http://independent.academia.edu/JuanVuletich>
>     patents.justia.com/inventor/juan-manuel-vuletich
>     <http://patents.justia.com/inventor/juan-manuel-vuletich>
>     linkedin.com/in/juan-vuletich-75611b3
>     <http://linkedin.com/in/juan-vuletich-75611b3>
>     twitter.com/JuanVuletich <http://twitter.com/JuanVuletich>
>


-- 
Juan Vuletich
cuis.st
github.com/jvuletich
researchgate.net/profile/Juan-Vuletich
independent.academia.edu/JuanVuletich
patents.justia.com/inventor/juan-manuel-vuletich
linkedin.com/in/juan-vuletich-75611b3
twitter.com/JuanVuletich

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20221219/8f039da3/attachment.htm>


More information about the Cuis-dev mailing list