[Cuis-dev] Slow keyboard input

Luciano Notarfrancesco luchiano at gmail.com
Fri Jan 28 09:04:09 PST 2022


Fantastic, this solved most of the problems, thank you! I’m using
HybridCanvas for now and it feels very smooth.

Part of the problem was that my window manager was stepping every 1 second
to make sure that windows were properly layedout (to account for when the
Cuis window changes size, for example). This was a bug, and was causing
everything to be redrawn every second, but it was not slow enough to be
noticeable until I tried it with full vector graphics. Now I fixed it to
avoid unnecessary redraws.

I still think there might be a bug somewhere. The fact that a browser with
halo feels slower than a browser with no halo is kind of weird. Also text
input shouldn’t feel much slower with vector graphics, I suspect something
is being unnecessarily redrawn on every keystroke.

On Fri, 28 Jan 2022 at 9:55 PM Juan Vuletich <JuanVuletich at zoho.com> wrote:

> On 1/28/2022 8:39 AM, Luciano Notarfrancesco via Cuis-dev wrote:
>
> This is very weird, I’m having lots of problems. I tried the new VM with
> the old image and seems to work fine. Perhaps the VectorEngine plugin is
> outdated? Now with just a few windows open (3 browsers, one workspace, one
> message set) everything becomes super slow and it takes over one second to
> react to clicks. Also, when I left-click a method in the method list of a
> browser sometimes it selects the method and sometimes it opens the menu (as
> if I had right-clicked)… super weird, any clue?
>
> On Fri, 28 Jan 2022 at 4:29 PM Luciano Notarfrancesco <luchiano at gmail.com>
> wrote:
>
>> Yes, that’s the one I’m using with the “fast” image. But it doesnt work
>> with the new image because it doesn’t have the VectorGraphics plugin.
>>
>> On Fri, 28 Jan 2022 at 4:05 PM Nicola Mingotti <nmingotti at gmail.com>
>> wrote:
>>
>>>
>>> hi Luciano,
>>>
>>> I didn't notice it, it may be just the vm.
>>>
>>> some months ago we agreed to run on this VM by default:
>>>
>>> wget -O cogspur.tgz https://github.com/OpenSmalltalk/opensmalltalk-vm/releases/download/202003021730/squeak.cog.spur_linux64x64_202003021730.tar.gz
>>>
>>>
>>> See, here
>>>
>>> https://github.com/Cuis-Smalltalk/Cuis-Smalltalk-Dev/blob/master/Documentation/GettingStarted.md
>>>
>>> bye
>>>
>>> Nicola
>>>
>>>
>>>
>>>
>>> On 1/28/22 09:56, Luciano Notarfrancesco via Cuis-dev wrote:
>>>
>>> The newest Cuis image feels much slower compared with my 1 year old
>>> image. Typing a single character in an empty workspace there’s a noticeable
>>> lag (like 200 ms, maybe). This is in a new and fast laptop. Anyone
>>> experienced anything like this? I don’t think the problem is
>>> VectorGraphics, because typing a single character shouldn’t take any
>>> noticeable time even without the plugin, and I think the glyph is cached
>>> anyway right? Maybe the problem is the VM? I’m using
>>>
>>> https://github.com/OpenSmalltalk/opensmalltalk-vm/releases/download/202112201228/squeak.cog.spur_linux64x64.tar.gz
>>>
>>>
>>>
> Hi Luciano,
>
> This may be due to using VectorCanvas for all drawing. Try evaluating
> `MorphicCanvas activeSubclass: HybridCanvas.` to use BitBlt for
> unzoomed/unrotated windows, with full VG capabilities, or `MorphicCanvas
> activeSubclass: BitBltCanvas.` to completely disable VG (while keeping TTF
> working).
>
> Please tell how it goes.
>
> Thanks,
>
> --
> Juan Vuletichwww.cuis-smalltalk.orghttps://github.com/Cuis-Smalltalk/Cuis-Smalltalk-Devhttps://github.com/jvuletichhttps://www.linkedin.com/in/juan-vuletich-75611b3https://independent.academia.edu/JuanVuletichhttps://www.researchgate.net/profile/Juan-Vuletichhttps://patents.justia.com/inventor/juan-manuel-vuletich
> @JuanVuletich
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20220129/a19f547e/attachment.htm>


More information about the Cuis-dev mailing list