So I've been having a problem with my game, and I'm not too sure how to solve it. Every time the player moves the screen, it jitters all the sprites on screen. Everything looks fine until the screen begins to move, and then everything starts fidgeting and gets kinda blurry. This doesn't appear to be framerate related as far as I can tell, because I'm not dropping any frames and it's happening regardless of if i'm using an FPS synch or not. I'm using a lot of plugins, I believe it might have something to do with the analog movement plugin i'm using called SAN_AnalogMove, but I dont know for sure. Does anyone have any ideas for how I could go about fixing this?
MV Help with screen jittering.
Javascript/Plugin SupportEasy way to start narrowing it down, if you turn off the analog movement plugin does it still happen?
For that matter, you can turn off half your plugins, then the other half, see if anything makes a difference; proceed from there.
For that matter, you can turn off half your plugins, then the other half, see if anything makes a difference; proceed from there.
Hmm...I watched the video. I couldn't really see it, but hopefully someone else can.
I'll be real with you, I don't see anything amiss in the video at all. Everything seems to be rendering the best it can.
Testing around enabling/disabling the plugins seems the best bet.
Testing around enabling/disabling the plugins seems the best bet.
If you look at the telephone poles at around the 10 second mark, its very obvious I feel. Especially when you go diagonally, It just feels choppy to look at. I'm gonna start turning off plugins and seeing what happens.
Oh, ok. I thought by the sprites being jittery I thought you meant the people. My mistake.
..Even within pointed out, I can *barely* see it after a lot of staring. I may just be blind.😅
Bright side that might mean if you can't solve it, it might not be an eyesore!
Maybe after checking the plugins, check on the Phone pole sprite? Maybe it's on a weird place on the sheet and that's making it disagree with the movement?
It's not just you, I can't see it either.
I don't have a solution, but I want to chime in to say that the OP is not wrong as there is a similar problem I have dealt with in my own game.
The jittering is on a micro level, usually only 1 pixel.
From my research it appears to be the result of how the engine rounds pixels if said pixel were to land somewhere between pixels. Obviously you can't have a half pixel so it needs to be rounded.
This rounding error can become apparent if you ever used a zoom plugin and zoom in. Certain events need to be rounded when updating their precise pixel position on the screen and as a result, on large events or 2 tile events you may see a tear in the event as one half is rounded a pixel up and the other's rounding is normal or rounded down.
When moving at slow speeds this can become somewhat apparent as the player character will have a slightly fuzzy jitter left and right by 1 pixel. I suspect users using smaller screens (not screen resolution but physical screen size) may be difficult to see the jitter because it 1) happens per frame (very fast) 2) happens in only small amounts (1 pixel).
This can also extend to events.
I cannot provide the link at this time, but there was a Japanese plugin to "fix" this, however, for me it only smoothed the players movement, but events suddenly had this jelly movement, as if they lagged a few frames behind the motion of the camera. I don't think it's an ideal fix.
Edit:
Just some additional notes.
First, I should mention I'm on mobile and can't watch the video, so my assessment above might not be related to this problem (though the way it has been described sounds like that same problem)
Second, unrelated, but I noticed that you have Aries weather control plugin. It should be noted that the plugin has a couple of bugs in it. The "embers" weather type will crash the game due to a typo in the code. Any of the special weather effects (the weather types not native to engine by default - embers, leaf, sparkles) will be deleted when opening the menu and won't appear again until you refresh the map. If you need to troubleshoot this plugin, create another thread. I don't mean to derail this one, just wanted to inform you.
The jittering is on a micro level, usually only 1 pixel.
From my research it appears to be the result of how the engine rounds pixels if said pixel were to land somewhere between pixels. Obviously you can't have a half pixel so it needs to be rounded.
This rounding error can become apparent if you ever used a zoom plugin and zoom in. Certain events need to be rounded when updating their precise pixel position on the screen and as a result, on large events or 2 tile events you may see a tear in the event as one half is rounded a pixel up and the other's rounding is normal or rounded down.
When moving at slow speeds this can become somewhat apparent as the player character will have a slightly fuzzy jitter left and right by 1 pixel. I suspect users using smaller screens (not screen resolution but physical screen size) may be difficult to see the jitter because it 1) happens per frame (very fast) 2) happens in only small amounts (1 pixel).
This can also extend to events.
I cannot provide the link at this time, but there was a Japanese plugin to "fix" this, however, for me it only smoothed the players movement, but events suddenly had this jelly movement, as if they lagged a few frames behind the motion of the camera. I don't think it's an ideal fix.
Edit:
Just some additional notes.
First, I should mention I'm on mobile and can't watch the video, so my assessment above might not be related to this problem (though the way it has been described sounds like that same problem)
Second, unrelated, but I noticed that you have Aries weather control plugin. It should be noted that the plugin has a couple of bugs in it. The "embers" weather type will crash the game due to a typo in the code. Any of the special weather effects (the weather types not native to engine by default - embers, leaf, sparkles) will be deleted when opening the menu and won't appear again until you refresh the map. If you need to troubleshoot this plugin, create another thread. I don't mean to derail this one, just wanted to inform you.
My blind guess:
To me it looked like the Map Scrolling was not fluent and more like many smal steps.
Any Map Scroll Plugins active?
To me it looked like the Map Scrolling was not fluent and more like many smal steps.
Any Map Scroll Plugins active?
When you open the console with F8, there's a performance tab:
Hit the record button and play the game as regular for a bit. Once you stop the recording, it should show you what causes the most hangups. From there, maybe someone with a little knowledge will be able to pinpoint something that's wrong.
One wild guess of mine would be if you have custom movement speeds with a float value like 3.5. Some of those floats just don't work right and may need to be changed.
Hit the record button and play the game as regular for a bit. Once you stop the recording, it should show you what causes the most hangups. From there, maybe someone with a little knowledge will be able to pinpoint something that's wrong.
One wild guess of mine would be if you have custom movement speeds with a float value like 3.5. Some of those floats just don't work right and may need to be changed.
Can you tell us your game's screen size?
The engine itself has problems if the screen size is not a full multiple of the tile size, and depending on the exact numbers that can sometimes result in jittering when it tries to align the tiles to a full grid and they don't fit due to bad numbers.
Additionally, your yanfly move core is in the wrong position, it needs to be farther down in the yanfly list of plugins. That is also a candidate for problems
The engine itself has problems if the screen size is not a full multiple of the tile size, and depending on the exact numbers that can sometimes result in jittering when it tries to align the tiles to a full grid and they don't fit due to bad numbers.
Additionally, your yanfly move core is in the wrong position, it needs to be farther down in the yanfly list of plugins. That is also a candidate for problems
So I messed around with a lot of the suggestions given to me. I turned off every single plugin in my project except for 1. That plugin is the YEP_FpsSynchOption. The jittering is still persistent when I turn off every other plugin, but when I turn off YEP_FpsSynchOption the jittering is still there and my entire game slows down and becomes kind of sluggish, even though it doesn't show it dropping frames. This is weird, because while I do have YEP_FpsSynchOptions on, It is disabled by default in the plugin settings. Enabling it in the plugin settings also results in the game slowing down and becoming sluggish, which makes absolutely no sense to me. It seems to me that when the plugin is turned on but disabled in the plugin settings that the game runs fine but has the jittering issue, and when it is either enabled or turned off it causes the game to slow down and become sluggish while still having the jittering issue. This leaves me very confused and I would really appreciate any input into the matter.
Just to clarify, this means that I also turned off Analog Move, so it can't be related to that like TheAM-Dol suggested.
So first, there's no need to double post
Just click the edit button at the bottom left (it's also against the rules to double post)
Concerning FPSSynch, I generally don't recommend people use that plugin. #1: the name is really misleading. #2 This plugin effectively bypasses a function that was added into the engine in one of the earliest updates that separated the logic from the rendered frames. So basically game logic is executed independently of the rendering frames. By using the plugin to bypass this function, game logic will now be calculated as the frames are rendered, which can make the game run too fast for those with powerful computers (making movement, logic, and menu navigation really annoying) and those on slower computers will have the game feel like it's running in slow-motion. It's a chaotic mess, and there is just no reason to use FPSsynch that I am aware of.
As for the jitter itself, I believe I see what you are talking about. I am home now and was able to watch the videos. It seems like the map itself isn't scrolling the smoothest.
In my opinion, I just wouldn't worry too much about this, as this post has already proved, not many people notice it, and it's pretty subtle.
You can try any of these plugins and see if it solves it for you (not sure which would be best)
forums.rpgmakerweb.com
forums.rpgmakerweb.com
(in the above thread, there is mention of "fuku_testpack.js" plugin. I've linked to the post in the above thread that includes the link. Try placing the fuku_testpack.js into your project to see if it helps.)
forums.rpgmakerweb.com
Just click the edit button at the bottom left (it's also against the rules to double post)Concerning FPSSynch, I generally don't recommend people use that plugin. #1: the name is really misleading. #2 This plugin effectively bypasses a function that was added into the engine in one of the earliest updates that separated the logic from the rendered frames. So basically game logic is executed independently of the rendering frames. By using the plugin to bypass this function, game logic will now be calculated as the frames are rendered, which can make the game run too fast for those with powerful computers (making movement, logic, and menu navigation really annoying) and those on slower computers will have the game feel like it's running in slow-motion. It's a chaotic mess, and there is just no reason to use FPSsynch that I am aware of.
As for the jitter itself, I believe I see what you are talking about. I am home now and was able to watch the videos. It seems like the map itself isn't scrolling the smoothest.
In my opinion, I just wouldn't worry too much about this, as this post has already proved, not many people notice it, and it's pretty subtle.
You can try any of these plugins and see if it solves it for you (not sure which would be best)
JitterFix - Fix the graphics jitter/stuttering
JitterFix Ver 1.0.0 Note: it has nothing to do with the event positon rounding error which mentioned here: https://forums.rpgmakerweb.com/index.php?threads/bug-fix-event-jitter-display-rounding-error.107752/ It should fix the issues mentioned here...
forums.rpgmakerweb.com
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...
forums.rpgmakerweb.com
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...
forums.rpgmakerweb.com
you still haven't answered my question about your game's screen size.
One of the patches above (the one mentioning the rounding error) would reduce the effect I'm writing about, but as with a lot of patches and bugfixes you should only apply them after confirming that you'll need them.
And a wrong screensize can have other effects beyong that rounding error...
One of the patches above (the one mentioning the rounding error) would reduce the effect I'm writing about, but as with a lot of patches and bugfixes you should only apply them after confirming that you'll need them.
And a wrong screensize can have other effects beyong that rounding error...
How do I check the size of the game's screen? Sorry im new at this, but as far as I know with all the plugins turned off the screen should be the default size. I am pressing F4 to go fullscreen mode sometimes, but the jittering is there even if its not fullscreen.
I've had this problem before, it had to do with the plugin I was using for pixel movement.
yes and no.
disabling all and every plugin AND starting a new playtest will make the MV engine go to default size.
However if you load a savefile with different settings or have one of several different plugins that change the screen size still active, then this does not count.
And if you disabled all plugins, you also disabled the patch that removes the default jitter - but if you keep some patches active the question is what you kept active on plugins.
Asking for the numbers directly usually tells if someone experimented with screen sizes without going through all the options of which patch plugins are active and so on.
I tried using these above plugins and they dont seem to solve the problem. The first link's plugin doesn't work, and it says that it won't work for anything but 60hz refresh rate monitors. My monitor is 75hz refresh rate so that's probably why. The second link I cant even find the download for the plugin fuku_testpack.js because the entire page it links to is in Japanese, but from what I've translated it says that the plugin is a fix for sprites that have had their color tone shifted in the editor, which isn't the case for any of my tilesets or sprites so I'm not sure if that would be a solution either.
I still dont know how to check the screens size. I don't think it has been changed and all plugins are off, I'm not using a savefile i'm just playtesting a new game every time. How do I check the screens size?
I don't know much about the complexities of RPG Maker MV yet as I am very new to it, but this game means a lot to me and I really need this problem solved some how. It's not just fine or barely noticeable, maybe you can't see it through video that well, but when you are sitting in front of the screen and playing it is very noticeable and even causes me to get headaches when playing for long periods of time. It's not something I can just accept as being ok, it is a problem I really want to solve somehow. Would anyone be willing to take a look at my project if I just posted the project folder here? I'd even be willing to commission someone to take a look and fix it for me, I've been trying all the suggestions given and I just don't seem to be able to get it by myself 🙁
Original thread: https://forums.rpgmakerweb.com/threads/help-with-screen-jittering.157765/