-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cursor movement through ToAlbum is sluggish #168
Comments
For the RubScrolledTextMorph, the cursor speed depends on the “Key repeat rate” setting in the macOS System Settings. See the Apple support article “Set how quickly a key repeats on Mac”. I have it set to the highest rate. For ToAlbum, the cursor speed depends on a BlKeyboardProcessor’s value for ‘shortcutRepeatInterval’, which is only assigned to in the |
thanks |
For the record. I checked that SDL2 does take into account the key repeat setting in Mac with this script based on another from issue #567. Steps to execute.
|
I wrote a benchmarks / automated profile around this topic. It's in BlocBenchs repo, executable by: the 3 main columns are:
It very simple to modify |
Thanks, I was wondering whether the command is not missing |
@Rinzwind I'm sorry I missed initial steps I did to set up Pharo... In a terminal (Linux or Mac), create a directory, cd, and run: Also I wasn't clear on the script. What I mean is that the code in monospace format, copy it and paste in a text editor. Then save as example.st those contents, in the same directory as Pharo.image. Finally, now you should be ready to execute Hope it helps! |
I didn't mention that the visualization in the screenshot is https://github.com/tinchodias/pharo-sauco-profiler, a visualization created with help of @akevalion in Roassal to show the results of Pharo profiler in another format, but you may prefer to read directly the output of Pharo profiler... it is available too in the inspector that the benchmark opens. |
Ah right! It hadn’t occurred to me it would be the script created through ZeroConf (I’ve used it on Linux but don’t use it on macOS). |
Moving the cursor through a ToAlbum by just holding the right arrow key seems a bit slow compared to doing the same with a RubScrolledTextMorph:
Demo.ToAlbum.Cursor.Movement.1.mp4
I thought it was probably due to the ToAlbum being hosted in Morphic but it doesn’t seem faster when opened in a separate window:
Demo.ToAlbum.Cursor.Movement.2.mp4
Versions used: Toplo commit a55be92 in Pharo 12 build 1521.
The text was updated successfully, but these errors were encountered: