MV What does this line of code do? (Galvs CamControl)

Hey again!

I'm having trouble using both Yanflys Doodads Plugin and Galvs CamControl because the CamControl plugin shifts Yanflys Doodads by a pixel whenever the cam moves (which is a problem because we work pixel perfect in many scenes).

If this was our wanted result:
1619022581251.png


We'd get this depending on where the player stands:
1619022565178.png


I found out what lines of code caused it and I tried deleting those lines just to check if it makes a difference and after deleting it everything works as intended which is great BUT I don't wanna break his plugin and cause myself trouble elsewhere. So what does he mean with Jitter and what does this line of code exactly do, can someone tell without reading the rest of the code?
1619022522767.png



Thanks for reading!

Kong
The one pixel shift is exactly what the jitter is referring to.

TL;DR: When rendering stuff to the screen, not everything is consistent on how things get rounded when fractions of a pixel are on screen. (maps, parallaxes and characters can slide by 1 pixels relative to each other)

That's exactly the code handling that; commenting it out means that it uses the default rounding that rpg maker uses.

Other plugins try to patch that as well, sometimes in different ways, which means they can end up conflicting with each other. If you aren't getting any jitter now, then you did the right thing
as you mentioned deleting, as in removing, I wont recommend that,
but rather rule it out with // in front of the function.

in case you need it back, you can remove the // to make teh function
run again, but never delete/remove a function, but rule it out to play safe 🙂.

everything else is explained nicely by Restart what it does.
Thanks very much!
I said deleting because my english sucks, I meant that I ruled them out 😀
Glad that you two saw this post <3

Original thread: https://forums.rpgmakerweb.com/threads/what-does-this-line-of-code-do-galvs-camcontrol.135709/