Mouse smoothing should be optional

Found a bug? Please report it, but remember to follow the bug reporting guidelines.
Missing a sane feature? Let us know!
But please do NOT request ports to other systems.

Moderator: ZSNES Mods

Post Reply
Poobah
Lurker
Posts: 164
Joined: Sun Sep 25, 2005 12:59 pm

Mouse smoothing should be optional

Post by Poobah »

I've noticed that with the latest WIP build of ZSNES, the mouse cursor is smoothened by averaging its current coordinates with the previous ones. While this is good with old 30hz mice, it's a pain with decent mice that refresh around 100 times per second. Is there any chance that this could be set in the options somewhere rather than always on?
grinvader
ZSNES Shake Shake Prinny
Posts: 5632
Joined: Wed Jul 28, 2004 4:15 pm
Location: PAL50, dood !

Post by grinvader »

Whatever mouse you have, the GUI display refreshes only 36 times per second.
皆黙って俺について来い!!

Code: Select all

<jmr> bsnes has the most accurate wiki page but it takes forever to load (or something)
Pantheon: Gideon Zhi | CaitSith2 | Nach | kode54
Poobah
Lurker
Posts: 164
Joined: Sun Sep 25, 2005 12:59 pm

Post by Poobah »

Well, could you answer my question? However the GUI display refreshes, the mouse's coordinates are still 'smoothened', creating a very annoying sluggishness.
Phil
Rookie
Posts: 21
Joined: Thu Aug 26, 2004 3:24 am

Post by Phil »

Imo, the answer is no and the mouse is by far better than before. I have a modern USB mouse. Maybe something's wrong from your side?
kode54
Zealot
Posts: 1140
Joined: Wed Jul 28, 2004 3:31 am
Contact:

Post by kode54 »

What you are experiencing is latency.
Poobah
Lurker
Posts: 164
Joined: Sun Sep 25, 2005 12:59 pm

Post by Poobah »

I've always been getting the latest WIPs as soon as they're released, and I know that the problem was only introduced in either the current release or the previous one.

I also know that this problem is exactly the same as the result of smoothening the mouse too much, because I've experimented with that sort of stuff before.

EDIT: After some more experimenting, I've observed that the problem only occurs when Triple Buffering is enabled, and worsens when in a 60Hz screen mode.
kode54
Zealot
Posts: 1140
Joined: Wed Jul 28, 2004 3:31 am
Contact:

Post by kode54 »

There you go, latency.

The mouse is already only being tracked and updated every 1.6667 frames ( 36fps ) at 60Hz display, then add the delay of two frames instead of three, and your cursor is only redrawn almost every frame, and up to 50ms behind.

Increasing the GUI update rate should solve the update frequency, but it won't solve the triple buffering lag.
Post Reply