[Cuis-dev] Morph redrawNeeded
Jon Hylands
jhylands at gmail.com
Wed May 3 12:01:38 PDT 2023
Hey Juan,
Try the attached in a virgin image. There is definitely something weird
going on - #drawOn: is getting called twice when #redrawNeeded is sent.
Make sure the Transcript is open.
- Jon
On Wed, 3 May 2023 at 14:02, Juan Vuletich <juan at cuis.st> wrote:
> Hi Jon,
>
> On 5/3/2023 11:48 AM, Jon Hylands via Cuis-dev wrote:
> > Hi Juan,
> >
> > I think you missed the point I was trying to make. The drawing code is
> > very fast - it would run at 70+ fps if I was calling the draw code
> > directly as fast as it can go.
> >
> > The issue is the delay between sending #redrawNeeded and the system
> > sending #drawOn:. On my desktop, that delay is around 50ms. On the
> > rpi4, that delay is around 250-300ms. It doesn't matter how fast the
> > draw code is if the fastest you can call the drawOn: is 3-4 times per
> > second.
> >
> > I don't know if there is something in my image that is messed up, but
> > I don't think so - the image on the rpi was a virgin image that I
> > loaded my package into (plus all the dependent packages that get
> > loaded automatically).
> >
> > There are no extra processes running in the background.
> >
> > - Jon
> >
>
> I see. The easy test we can all do is to just run a class browser. I
> believe scroll will be fast on your Raspi, and fps will be adequate
> (tens per second, I guess). So, there must be something different here,
> and the only way I can find out is by seeing the same on my Raspi or PC.
>
> An alternative is to share your code, or a prebuilt image. Another
> alternative could be if you can prepare a Workspace example that shows
> this slowdown.
>
> If I can reproduce it on my machine, I will be able to understand what's
> going on, and hopefully improve it.
>
> Thanks!
>
> --
> 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/20230503/90a3dc7c/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: RedrawNeededTest.st
Type: application/squeak-changeset
Size: 1274 bytes
Desc: not available
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20230503/90a3dc7c/attachment.bin>
More information about the Cuis-dev
mailing list