Jump to content

Recommended Posts

Has anyone ever tried to fix paddle jitter by code? Simple averaging seems to be too simple to really work.

 

Here is my idea for an algorithm:

; n = number of frame
; inp[n] = paddle value of current frame
; out[n] = jitter suppressed resulting value

factor = 0.0 .. 1.0                             ; e.g. 0.5 (1.0 means no jitter suppression and immediate response)
dfactor = factor ^ (1 / abs(inp[n] - out[n-1])) ; the larger the paddle delta, the less jitter suppression
out[n] = inp[n] * dfactor + res[n-1] * (1 - dfactor)

Due to the math, this cannot be implemented 1:1 in 6502 assembler, but an ARM based game could use it. And Stella too.

Does anyone have a better idea?

Edited by Thomas Jentzsch
  • Like 4
Link to comment
https://forums.atariage.com/topic/290927-anti-paddle-jitter-algoritms/
Share on other sites

The major reason of my question: The R77 console produces a very hefty jitter (~3 pixel!). They tried to compensate that with some very primitive code, which caused the paddles to respond that badly. Over the last days, we did enhance Stella with a configurable dejittering. Seems to work pretty well for us. :)

The next R77 image will show if it works for everyone.

  • Like 3
  • 4 weeks later...

This has been raised a few times, and generally I respond that a median filter of size 3 would likely work great. 1, 2, 3. (probably more) :)

 

Median filters are fantastic with salt and pepper type noise, which seems to be the same kind of noise jittery paddles put out. You would need a handful of bytes, but nothing very onerous.

  • Like 3

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...