News:

Stuttgart museum purchases 40 NeXT machines from Rob Blessin

Main Menu

Newbie question: how to get smooth mouse movement

Started by ChristopherDrum, Mar 19, 2026, 01:01 PM

Previous topic - Next topic

Rhetorica

Applying that patch to r1789-softfloat definitely seems to give a more solid basis for comparison. The verdict: movement feels extremely slow and sluggish but is at least smooth so long as the linear speed isn't increased past 2 or so. Looking through the values specified in dlgMouse.c, I'm astonished at how slow all the presets are—these are basically unusable in my environment. Unfortunately, usable linear speeds get very hard to control very quickly because of low time resolution and uneven application of the NeXT mouse acceleration; there's zero consideration for smoothing in their algorithm and it shows. I'm definitely putting GKMouseScaler back in; will report on the results next time.

Clockspeed shown on the emulator's status bar still fluctuates wildly when moving the cursor vs. dragging a window, with similar values to what I mentioned previously.

Is there any way the mouse polling rate can be increased? My native builds of Previous seem to be really struggling with this compared to x86 NEXTSTEP under VirtualBox or infinitemac WASM Previous.
WARNING: preposterous time in Real Time Clock -- CHECK AND RESET THE DATE!

andreas_g

Quote from: Rhetorica on Mar 31, 2026, 01:13 AMThe verdict: movement feels extremely slow and sluggish but is at least smooth so long as the linear speed isn't increased past 2 or so. Looking through the values specified in dlgMouse.c, I'm astonished at how slow all the presets are—these are basically unusable in my environment.

This is weird. Can you post your configuration file?

Rhetorica

Attached.
WARNING: preposterous time in Real Time Clock -- CHECK AND RESET THE DATE!

andreas_g

Thank you. It seems I am not able to improve this. Compared to Previous v4.1 is this now better or worse?

andreas_g

#19
Another patch is online. It should fix the issue where the cursor sticked to vertical or horizontal lines (your spiral drawing test).

I am looking for more details on NeXT mice in this discussion.

Rhetorica

Quote from: andreas_g on Apr 04, 2026, 09:12 AMAnother patch is online. It should fix the issue where the cursor sticked to vertical or horizontal lines (your spiral drawing test).
A big improvement! Though I did find that I had to draw very slowly or the acceleration would cause some skipping:
spiralish.png
Perhaps I still have some use for GKMouseScaler:

spiralish-gk.png

I'm using 1.25 linear and 1.0 exponential in both of the above, r1795-filesharing.

The new 'raw mouse input' option seemed to make the mouse move a bit faster but substantially degraded smoothness so I decided to leave it off.
WARNING: preposterous time in Real Time Clock -- CHECK AND RESET THE DATE!