Bug Fix: Event Jitter / Display Rounding Error

Some people mistake this for Screen Tearing or Character lag.



Events and the tilemap were rounding extremely low values from "display_x" and "display_y" differently. The tilemap are always rounded up while characters/events are always rounded down.

What do I mean by extremely low values? Because of the formula used to calculate scroll distance (2 ** @scroll_speed / 256.0) the display points can end up being values such as 15.5 pixels.

As mentioned earlier, the tilemap would round this up to 16 while the events would round this down to 15. This would cause events to display 1 pixel away from where they were supposed to.

Github Download
Just tried it out with a smooth scrolling plugin I had installed, works perfectly. This is incredibly helpful, thank you.
Wow. I remember this issue. Gee you were fast!!!!
YAY!
Thank you sincerely so much, this was driving me crazy and another RPG Maker thing I thought I just had to deal with.
There were a bunch of things I couldn't do/had to find workaround/looked bad because of that pixel difference, the most basic of those being when you needed events as stand-ins for an extra mapping layer but then it wouldn't align properly. Now it works 😀
Really so happy to have this fixed!

Just a small question regarding who to add in credits, is that to you having converted it? or liquidize as in the plugin/original author? Or both.
YAY!
Just a small question regarding who to add in credits, is that to you having converted it? or liquidize as in the plugin/original author? Or both.

I only really find bugs, isolate them and find why they happen, report them and test them in this case. NeonBlack was the one who originally found the fix and I just requested Liquidize to do it for MV as well. So I guess technically both of them haha.
Oh wow! Thank you. My game feels so much better because of this! 😀 😀
This is for the quackguyver issue? Nice!
This plugin fixes the off by 1 error in my extremely low res game I've been making. Events now match the ground!

However, now the player character jitters by 1 pixel a ton when walking. When very zoomed out, it's not an issue, but my game is very, very low res, so even 1 pixel is very noticeable. Is this a known issue, or am I the only one getting it?
This plugin fixes the off by 1 error in my extremely low res game I've been making. Events now match the ground!

However, now the player character jitters by 1 pixel a ton when walking. When very zoomed out, it's not an issue, but my game is very, very low res, so even 1 pixel is very noticeable. Is this a known issue, or am I the only one getting it?
I was having same issue, we had to turn it off 🙁

We use altimits so i figured the issue was with it, since altimits is not friendly to many plugins
Alright, it's good to know it's not just me.

I've turned off other plugins. This does seem to be an issue with this bug fix, that this fix causes the player sprite to jitter. I've attempted to fix it on my own, trying to locate where the off by 1 error is, adding Math.floor() to other functions to make rounding consistent throughout all code, but with no success.

Hopefully someone with more coding knowledge than me can figure this one out, since this fix is unusable t me right now, due to the constant 1 pixel jittering on the main character. On a high res game, it's not noticeable. But on a super low res game, it is very, very noticeable and distracting.
What's the license for using this plugin? Can it be used freely in commercial projects?
Alright, it's good to know it's not just me.

I've turned off other plugins. This does seem to be an issue with this bug fix, that this fix causes the player sprite to jitter. I've attempted to fix it on my own, trying to locate where the off by 1 error is, adding Math.floor() to other functions to make rounding consistent throughout all code, but with no success.

Hopefully someone with more coding knowledge than me can figure this one out, since this fix is unusable t me right now, due to the constant 1 pixel jittering on the main character. On a high res game, it's not noticeable. But on a super low res game, it is very, very noticeable and distracting.

I also had this same problem and it seems to be related on screen panning? The problem with MV tilemap is very deep and I honestly don't know how else to fix it :/
Well, hopefully a fix to this can be found at some time. As it stands right now, my super low res game just can't be made with the jittering.

I do appreciate all the work everyone's put into this! I just know I can't continue work on my game unless this gets fully fixed, which is a shame, as MV is nice to work with.
Tbh, I'd rather have the actor gets all jittery if the events/doors, etc. stay in their places. Unless there is a fix for this minor issue, I wouldn't go against it.
There is a fix by FUKU that doesn't let both to happen:


However, I noticed that RPG Maker camera is really painful to work with especially if you use pan screen. Even without the fixes or with the fix, the player can move jittery thanks to it. I recommend using stuff like @Galv's camera when you do panning shots instead as it's the only workaround I found that works nicely.
Doesn't play well with @ mr. Tivel's Dark room covers.

I couldn't take a perfect screenshot so I screenshot a video I took of it. It gives alot of lines through the darkness do to updating.

upload_2019-11-29_17-45-25.png


Any advice?
We don't do compatibility patches sadly.
Where do you actually download the Fuku plugin/fix? The Twitter conversation references a plugin, fuku_testpack.js, but with no link. Searching the plugin by name, all I get is Japanese sites, which I don't speak so I cannot easily navigate. I feel I may have missed something.
@TheTitan99 fuku_testpack.js can be found in a zip file at- http://www5f.biglobe.ne.jp/~fuku-labo/library/etc/
Find the download link with "(19/05/24up 23,812Bytes)" 10 plugins included
I think I've found a bug with this plugin. For me it causes the character sprite to disappear when map looping (horizontal+vertical) is turned on.

Can this be fixed somehow?

Original thread: https://forums.rpgmakerweb.com/threads/bug-fix-event-jitter-display-rounding-error.107752/