Screen tearing at larger map sizes

Hi, I'm having an interesting issue and I haven't been able to find any existing threads on it in my searches, so thought I'd post a topic to see if anyone else has experienced this or knows the cause/potential solutions.

Basically, when a map is large enough in the game I'm developing (in this case, 80 by 90), scrolling down it causes a split-second screen tearing visual.
1737603869250.png

And it's not consistent when it happens:
1737603898570.png


It took me a while to narrow down the cause, but it happens with zero plugins installed, and with no parallel events running on the map. Making the map smaller eliminates the issue, and making a different map on which it doesn't happen the same size causes it to happen there too, so it's *clearly* the map size, but I haven't been able to figure anything out beyond that yet.

Anyone come across this before?
I once saw a topic talking about black area of the map when the map size is too big or there are too many tiles on the same screen.
This is my screenshot using a big map (1920x1080):
1737605482583.png


Note the lower part of the map can't be displayed.
So I guess there's some kind of hardware or PIXI.js limitation.
Although your problem seems to be on vertices, not entire tiles.
@Trihan
I've seen screenshots of similar effects, but in the editor instead of ingame.
In those cases it was always a problem with the display driver, most often a damaged driver but I think one or two times it was caused by using the wrong chip in a computer with two different display chips.

That said, the combination with map size seem to indicate it is also a RAM-size issue involded somehow - otherwise the map size shouldn't matter for this.



@utunnels you're writing about screen size, not map size, and this is the first time I've ever heard of such an effect. And I believe there are some projects out there that use 1920x1080 without problems as it is a common monitor size.
So it has to be something with your specific computer as well.
@Andar Actually it has something to do with map size, as well as screen size. The OP mentioned 80x90 so I tested using a 90x90 map. If I use 40x90, it looks fine using 1920x1080 resolution.

Edit* it has to be a filled map, if you leave most of it blank the glitch is gone.

Yeah so I said hardware limitation. There must be a limitation of how many sprites or vertices webgl can handle at the same time. A map has multiple layers, so there can be a few tens of thousands of vertices at the same time.

Original thread: https://forums.rpgmakerweb.com/threads/screen-tearing-at-larger-map-sizes.174889/