Huge issues with charset lag

I tried this out with friends and we're all getting mixed results. Some of us get it, some of us don't get it at all.
As you can see here the bug is not being triggered. But I have seen some people managed to trigger it. Do you see why this is hard to fix? @quackgyver


Well yes, bugs need to be properly troubleshot by a developer who can break the problem down into smaller, solvable parts. It's not really reasonable to expect bug reports to also have isolated the problem.

What I mean is, the bug has been found and confirmed and we have taken all the troubleshooting steps that we can be expected to take. It's now up to the developers to take over, do proper testing to isolate the faulty code and then fix the problem.

My friend and I have the same specs. That's the thing.
Hopefully it's just Pixi-tilemap though.

@quackgyver try this fix

Sure, I can try that and report back as soon as I have time.

EDIT:

This isn't a plugin file, so I'm not sure what I'm expected to do here. I'm definitely not a fan of randomly replacing or editing core files, so could I get some details on what this is, what it does, how I'm supposed to use it and why I need to modify core files to begin with?
This isn't a plugin file, so I'm not sure what I'm expected to do here. I'm definitely not a fan of randomly replacing or editing core files, so could I get some details on what this is, what it does, how I'm supposed to use it and why I need to modify core files to begin with?


Make backup of JS file and then replace a core file with this in your test project with the mountains and the red mages.

I need to see if it works on you too and if it has other problems cuz I already mentioned that I have a hard time replicating it and provided two video test cases that other people can replicate it and some don't with the exact same pc specs. My friend stated it works so test it on the same test project.
Yes, the errors still occur even when the resolution is set to a multiple of 48.

This has been a bit of a wild goose chase I think because everyone took your word for this. This is definitely resolution related, what values did you test?

Just tested in a clean project. Completely saw your bug with the resolution you stated.

Changed the resolution height to 312, 324, 336 and 360 (multiples of 12, 24 and 48) and the bug vanished. 320 is a factor of 2, not 3, so I'm honestly not very surprised. Admittedly, MV's 48x48 tile size is unusual, but if I was in your position, I would change it to 324 and call it a day. Otherwise, you could probably solve the problem by using TileD plugin (since it's a different tilemap altogether).

Asking them to fix the default for this one fringe case or trying to workaround with any fixes they give you is likely going to cause problems in other departments. I don't really think it's worth it, though Archeia's posted fix should work anyway.

Changing the value to something obscene, like 322, causes the lines to appear without changing the movement, which is a good example of the problem. This is pretty usual. Resolutions that don't match your tileset cause issues pretty much across the board in most RM engines. Is there any reason why you're using such an unusual resolution size?
Looking back at the first few posts, I trusted that you did indeed test with 336 and I can 100000% confidently say that no, the screen tearing doesn't happen either there with the test project.

Graphics render better if the resolution results into an even number. So just change your resolution to divisible by 12/24/32/48 or something as long as it doesn't result to an odd number and give you other problems.
Make backup of JS file and then replace a core file with this in your test project with the mountains and the red mages.

I need to see if it works on you too and if it has other problems cuz I already mentioned that I have a hard time replicating it and provided two video test cases that other people can replicate it and some don't with the exact same pc specs. My friend stated it works so test it on the same test project.

Okay, I'll do this as soon as I can. Since the issue occurs arbitrarily, it might take some time for it to pop back up again.

This has been a bit of a wild goose chase I think because everyone took your word for this.

It's not a wild goose chase, because everything I've posted has been true.

This is definitely resolution related

How do you deduce that it's definitely resolution related?

what values did you test?

I've tested two resolutions:
  • 480x320 (the original game resolution)
  • 480x336 (the closest you can get to the original resolution and still be divisible by 48)
Just tested in a clean project. Completely saw your bug with the resolution you stated.

Changed the resolution height to 312, 324, 336 and 360 (multiples of 12, 24 and 48) and the bug vanished. 320 is a factor of 2, not 3, so I'm honestly not very surprised. If I was in your position,

The fact that you can't reproduce the bug in the exact same manner that I can doesn't necessarily mean that the bug is invalid. It just means that you can't reproduce it.

I would change it to 324 and call it a day.

I can't change it to 324 and call it a day because 324 doesn't work.

Here's a screenshot of the game with the resolution set to 480x324px using YEP_Core Engine (as per Archeia's request):

Screen Shot 2019-04-05 at 18.16.05.png

I changed the event tiles to pink so you can see clearly where the tearing occurs, and I left the plugin window in the background so you can verify the resolution that the game is running on.

Otherwise, you could probably solve the problem by using TileD plugin (since it's a different tilemap altogether).

What's the TileD plugin and how would it solve this issue?

Asking them to fix the default for this one fringe case or trying to workaround with any fixes they give you is likely going to cause problems in other departments.

I wouldn't call what looks like a reproducible problem caused by a flaw in how the toolkit was programmed a fringe case.

Changing the value to something obscene, like 322, causes the lines to appear without changing the movement, which is a good example of the problem. This is pretty usual.

I don't really understand what you're trying to say here.

Resolutions that don't match your tileset cause issues pretty much across the board in most RM engines.

Sure, but that's not a relevant issue here because this bug occurs with resolutions that are divisible by 48.

Is there any reason why you're using such an unusual resolution size?
Yes, we're making a GBA-styled game, so we're making it in the same resolution as the GBA.

Looking back at the first few posts, I trusted that you did indeed test with 336 and I can 100000% confidently say that no, the screen tearing doesn't happen either there with the test project.

Just because it doesn't happen to you it doesn't mean that it doesn't happen to me. I did indeed test in 480x336px, and it doesn't work.

Graphics render better if the resolution results into an even number. So just change your resolution to divisible by 12/24/32/48 or something as long as it doesn't result to an odd number and give you other problems.
I did, and it doesn't work. Just because you can't reproduce it it doesn't mean that I can't.
This is a clean project with nothing but YEP_CoreEngine? There are no other plugins enabled that impact the resolution, including the Community_Basic plugin right? If I set the resolution in YEP_CoreEngine, but not Community_Basic and Community_Basic is still enabled, the two resolutions will be applied and the problem persists.

A list of installed plugins might help with troubleshooting at this point, to see if there are any other conflicts.

Also, your screenshot looks like it's double size. You zoomed in to show us this, right? Or is the game running at 2x scale?
"Just because it doesn't happen to you it doesn't mean that it doesn't happen to me. I did indeed test in 480x336px, and it doesn't work."

I suggest you upload a project that it occurs, (be careful not to include any dlc material.
If you are not sure, then PM someone with a link to the project that can see it.
Pro tip: That someone must want to help you, so it would be nice to ask that someone first.
"Just because it doesn't happen to you it doesn't mean that it doesn't happen to me. I did indeed test in 480x336px, and it doesn't work."

I suggest you upload a project that it occurs, (be careful not to include any dlc material.
If you are not sure, then PM someone with a link to the project that can see it.
Pro tip: That someone must want to help you, so it would be nice to ask that someone first.
I was going to suggest this, I assume this isn't something he wants to do. This would be 100% the best way to deduce the problem.

I keep getting drawn to this screenshot you posted, @quackgyver
I've already taken basic troubleshooting steps, but for the sake of this topic I created a new project from scratch just now, lowered the resolution to 480x320px using Community_Basic, created lag by increasing the map size, number of events and on-screen effects, and used events placed next to tiles in order to show how tearing occurs:

View attachment 112158

Not once have you posted a full window screenshot in this whole thread. Why are there black bars on the side of your project here? Can you post us a full, un-cropped screenshot of the window using 336 resolution and displaying the error?

EDIT:
For sanity, tested with Community_Basic enabled and YEP_CoreEngine disabled. If I set the resolution to 320, the tearing occurs, but if I up it to 324, it's fine. Window width/height has no bearing on this, since it's just related to the eternal resolution.
This is a clean project with nothing but YEP_CoreEngine? There are no other plugins enabled that impact the resolution, including the Community_Basic plugin right? If I set the resolution in YEP_CoreEngine, but not Community_Basic and Community_Basic is still enabled, the two resolutions will be applied and the problem persists.

A list of installed plugins might help with troubleshooting at this point, to see if there are any other conflicts.

I'll summarize the troubleshooting situation for clarity.

The long, excruciatingly in-depth version:

There are two projects:

  • PROJECT A: The actual game (which has a ton of plugins and lots of possible issues).
  • PROJECT B: The clean debug project that I was asked to create and share (which is completely devoid of any additions beyond the ones that I've been asked to use for troubleshooting).

The following two flavors of the same bug have been discovered:

  • BUG A: Random tearing on map load.
  • BUG B: Random tearing on walk.

These are the apparent prerequisites for BUG A and BUG B to occur:

  • FACTOR A: A low enough resolution that tearing would become visible to a problematic degree.
  • FACTOR B: Resource-intensive game content.
  • FACTOR C: Some arbitrary factor that seems to cause the bug to sometimes occur, and sometimes be impossible to trigger.
These are the contexts in which I've been able to reproduce the bugs:
  • The actual game in the resolution 480x320.
  • The actual game in every single resolution that I've been told to try in this thread.
  • The debug game in the resolution 480x320.
  • The debug game in every single resolution that I've been told to try in this thread.
In your last post you told me to just set the the resolution to "324 and call it a day", so I changed it in the actual game (PROJECT A) rather than the debug game (PROJECT B ) to show you that I can't just change the resolution and move on.

I'm also going to change it in the debug game (i.e. PROJECT B ) since I've already promised Archeia that I'd test her solution, but this takes time because the bug doesn't trigger as frequently in the debug game (i.e. PROJECT B ) - most likely because of FACTOR B (i.e. it's not resource-intensive enough) but also possibly because of FACTOR C (the seemingly random factor).

The short version:

The bug triggers in both the real game project and the debug project, but it's harder to trigger in the debug project because it's not as resource-intensive. I'm going to get back on that one since Archeia asked me to try her solution, but in the meantime I showed you that your suggested resolution doesn't work in the main game.

"Just because it doesn't happen to you it doesn't mean that it doesn't happen to me. I did indeed test in 480x336px, and it doesn't work."

I suggest you upload a project that it occurs, (be careful not to include any dlc material.
If you are not sure, then PM someone with a link to the project that can see it.
Pro tip: That someone must want to help you, so it would be nice to ask that someone first.

This is a commercial release, so I can't release the source. I've reproduced the bug in a clean project and shared that earlier in the thread though, and it's been used by another member to verify the bug. This should be enough.

I was going to suggest this, I assume this isn't something he wants to do. This would be 100% the best way to deduce the problem.

Since the bug is reproducible in both the main project and the debug project (which has been confirmed by another user in this thread), the debug map that I shared and which has been confirmed should be enough for us to be able to acknowledge that the issue isn't limited to the main game project.

I keep getting drawn to this screenshot you posted, @quackgyver

Not once have you posted a full window screenshot in this whole thread.

I don't see the problem with cropping an image?

Why are there black bars on the side of your project here?

Because you questioned whether I'd tried a resolution that was divisible by 48, so I went into windowed mode in order to show the game next to the plugin window where the resolution was specified. RPG Maker MV does letterboxing in windowed mode.

Can you post us a full, un-cropped screenshot of the window using 336 resolution and displaying the error?

What do you mean by "full"? You mean full screen and maximized?

If so then sure.

480x320:

Screen Shot 2019-04-05 at 19.25.30.png

480x336:

Screen Shot 2019-04-05 at 19.27.45.png

EDIT:

EDIT:
For sanity, tested with Community_Basic enabled and YEP_CoreEngine disabled. If I set the resolution to 320, the tearing occurs, but if I up it to 324, it's fine. Window width/height has no bearing on this, since it's just related to the eternal resolution.

I'm not sure what you mean by this.
"This is a commercial release, so I can't release the source. I've reproduced the bug in a clean project and shared that earlier in the thread though, and it's been used by another member to verify the bug. This should be enough."

Where is that clean project? Send me that using a dropbox link in a PM. I wanna see what happens on my end.
"This is a commercial release, so I can't release the source. I've reproduced the bug in a clean project and shared that earlier in the thread though, and it's been used by another member to verify the bug. This should be enough."

Where is that clean project? Send me that using a dropbox link in a PM. I wanna see what happens on my end.
I can't share the main game project unless I remove every aspect of it. If I did that then it'd put the game on par with the debug game which I've already shared and which has been confirmed as a valid way to reproduce the bug. The debug project should be enough, and is also a better way to troubleshoot since it simplifies the use case.

If you're asking where the debug project is then it was posted earlier in the thread. It's a map file.
I don't see the problem with cropping an image?
It doesn't provide good data.

I can see here that it's letterboxing, which tells me you're using the Community_Basic plugin or something else that lets you change the window size, since YEP_CoreEngine doesn't allow you to change the window size.

In your test project, please disable YEP_CoreEngine, and change the resolution to 324 / 336 in Community_Basic OR disable Community_Basic and set the resolution to 324 / 336 in YEP_CoreEngine, then let us know if the tearing occurs. These scripts must not be enabled simultaneously. It defeats the purpose of this troubleshooting.

If you're using any other scripts that impact the resolution or window size we need to know this. Also, are you using some kind of pixel perfect plugin here? That might help too. If I recall, that's not a default functionality.

"It should be good enough. I've provided enough information." Everything said up until now has been an attempt to help you, but you keep becoming increasingly defensive about this. They can't fix a problem that doesn't have a clear replication. We all found a clear replication (320 resolution vs 336 resolution), but you're telling us that isn't the case, so they can't magically create a solution for your case until we know the cause. We have to keep gathering data until we have a clean-cut replication.
It doesn't provide good data.
Feel free to tell me what you think is missing and I'll be sure to try to include that.

I can see here that it's letterboxing, which tells me you're using the Community_Basic plugin or something else that lets you change the window size, since YEP_CoreEngine doesn't allow you to change the window size.
The only thing I'm using in the last example is YEP_CoreEngine:

Screen Shot 2019-04-05 at 19.39.42.png

They were fullscreen screenshot, so why wouldn't letterboxing occur?

In your test project, please disable YEP_CoreEngine, and change the resolution to 324 / 336 in Community_Basic OR disable Community_Basic and set the resolution to 324 / 336 in YEP_CoreEngine, then let us know if the tearing occurs. These scripts must not be enabled simultanously.
Yes, this is what I've done in every instance of troubleshooting the bug, and tearing still occurs. I've never had both plugins enabled simultaneously, and I've tried using both Community_Basic and YEP_CoreEngine.

If you're using any other scripts that impact the resolution or window size we need to know this. Also, are you using some kind of pixel perfect plugin here? That might help too. If I recall, that's not a default functionality.
No, the debug game has one plugin to change the resolution (Community_Basic or YEP_CoreEngine) and MadeWithMV, and the tearing still occurs.

"It should be good enough. I've provided enough information." Everything said up until now has been an attempt to help you, but you keep becoming increasingly defensive about this.
Refusing to share the source of a commercial game which isn't even necessary to troubleshoot the bug isn't being defensive. Especially since I've done everything else that's been asked of me throughout the entire thread (except for the last few troubleshooting steps, which I've promised to do ASAP since it'll take some time).

They can't fix a problem that doesn't have a clear replication. We all found a clear replication (320 resolution vs 336 resolution), but you're telling us that isn't the case, so they can't magically create a solution for you for this one, bizarre instance.
I'm not sure I understand what you're trying to say here.
I'm saying your case still can't be replicated by anyone here, so the problem can't be solved. We all resolved the problem by changing the resolution except you, so there is no clear cause. Also, I'm not telling you to share the commercial source. I'm just explaining to you your attitude as I've been following this thread is coming off as defensive to everyone who has been taking their time to help you.

I need a screenshot of the window showing the Windows border. Based on the screenshot you sent, your eternal resolution was set to 375x250, which is definitely not valid, and I doubt what you set it to. So this is why I asked for a "full" screenshot (i.e. displaying the Window's border, not fullscreen).

Is that screenshot from your test project or actual project? You still didn't explain whether or not you are using a pixel perfect plugin, which appears here, and would be a 3rd variable mixed into all of this.

It would be incredibly helpful if you uploaded your "test project" that you claim is causing the same problem, the one that is not related to the commercial game, so we can verify what else could possibly be causing the problem. I'm not implying you should upload any of your commercial project, I get that. Hell, a map + your js folder from the test project would suffice at this point.
Sigh...
"Where is that clean project? Send me that using a dropbox link in a PM. I wanna see what happens on my end."
You reproduced the bug on a clean project. That's what I am looking for, not your game.

Edit: Sorry mate, I won't look for it for you. If you are too lazy to bring me a link to a clean project that contains this bug, then why should I put any effort for you? I mean, think of it. Seriously.
You talk about a commercial game you wanna protect, while you don't even bother help others help you earn money. Wow.
I'm saying your case still can't be replicated by anyone here, so the problem can't be solved.

We all resolved the problem by changing the resolution except you

Shaz was the first to reproduce the bug and they never stated that changing the resolution fixed it.

so there is no clear cause.

If there was a clear cause then this thread would never have been posted. Bugs can sometimes be seemingly inconsistent and opaque like that.

Also, I'm not telling you to share the commercial source. I'm just explaining to you your attitude as I've been following this thread is coming off as defensive to everyone who has been taking their time to help you.

I'm answering every single question, I'm doing everything that's being asked of me (beyond sharing the commercial source) and I'm being wholly compliant and agreeable despite the fact that everything I say is being scrutinized to the point where I'm constantly having to repeat myself. There's nothing wrong with my tone, and I think that we should keep the derailing to a minimum by focusing on the bug and the troubleshooting instead of meta discussions.

I need a screenshot of the window showing the Windows border.

Sure:

Screen Shot 2019-04-05 at 20.05.32.png


Based on the screenshot you sent, your eternal resolution was set to 375x250, which is definitely not valid, and I doubt what you set it to. So this is why I asked for a "full" screenshot (i.e. displaying the Window's border).

What do you mean by "eternal resolution"?

Is that screenshot from your test project or actual project?

All the screenshots with colorful pixel graphics that are devoid of RTP is from the actual project. All the screenshots that have any RTP graphics in them are from the debug game.

You still didn't explain whether or not you are using a pixel perfect plugin, which appears here, and would be a 3rd variable mixed into all of this.

I don't know what a pixel perfect plugin is. In the main game I'm just using a resolution-setting plugin and various menu plugins, but as I said before, I think we should focus on the debug game instead of the main game.

It would be incredibly helpful if you uploaded your "test project" that you claim is causing the same problem, the one that is not related to the commercial game, so we can verify what else could possibly be causing the problem. I'm not implying you should upload any of your commercial project, I get that. Hell, a map + your js folder from the test project would suffice at this point.

Sure I'll do that, though I've changed it beyond the state it was in when I last reproduced the bug. What I'll do is I'll create a new project again, try to reproduce the bug again, screenshot and share the reproduced bugs, and then upload a ZIP containing the new debug project in the exact same state it was in when I posted the latest screenshots. This is going to take some time since I've got a backlog of things that I've promised to try in this thread, but I'll return with an update ASAP.

Sigh...
"Where is that clean project? Send me that using a dropbox link in a PM. I wanna see what happens on my end."
You reproduced the bug on a clean project. That's what I am looking for, not your game.

Edit: Sorry mate, I won't look for it for you. If you are too lazy to bring me a link to a clean project that contains this bug, then why should I put any effort for you? I mean, think of it. Seriously.
You talk about a commercial game you wanna protect, while you don't even bother help others help you earn money. Wow.

I think it's beneficial to have a thread where the troubleshooting process can be followed chronologically from start to end, meaning that it's important to follow the thread from the start to know what's already been posted. Otherwise the thread is going to get derailed by people suggesting things that have already been covered.
No argument, do as you please. 🙂👍
No argument, do as you please. 🙂👍
Well, I appreciate the attempt to help either way. Thanks for trying.
OSX? Now we are getting somewhere. This is why I mentioned a cropped screenshot doesn't give good data.

How are you running this project on OSX? Are you deploying it?
OSX? Now we are getting somewhere. This is why I mentioned a cropped screenshot doesn't give good data.

How are you running this project on OSX? Are you deploying it?

It's just regular test playing from within the toolkit in every case. I can try an exported build when I make the new debug project while I'm at it, just to rule out test playing being the issue somehow, or at the very least narrow down the problem to that if possible.

Original thread: https://forums.rpgmakerweb.com/threads/huge-issues-with-charset-lag.106617/