My question is pretty simple but since I still dont understand very well how MV works "under the hood", and I couldn't find the answer on google, I felt I needed to ask:
does MV render things outside of the area viewed by the game camera?
Yes, all data in game are JSON files including maps, when MV load files it reads them throughly.
Scratch that
I'm not sure about sprites (events), but the map itself is only rendered to the window size plus a 20 pixel border. This is a function of the Tilemap and ShaderTilemap class, and nothing to do with Pixi.
Spriteset_Map is the container for all the different types of sprites you see on a map. The parallax, tiles, characters, weather, etc. All of those things are children, and each individual item is a sprite.
There are two aspects to character (event, player) sprites - one is the logical - what file is used for the image, what row, what column, what is the map X and Y coordinate, is it animating, and which frame of animation should show? Those things are just data, and are updated on every frame. The other is the drawing of the actual sprite.
As far as rendering, there's a _renderWebGL and _renderCanvas function in the pixi.js Sprite class. I haven't looked much to figure out when those functions get called from the inheriting classes.
ShaderTilemap._paintAllTiles; It receives the starting X and Y position and then calculates the width and height based on it's own size (screen size + 40px, both vertically and horizontally).
That's only for the map though; Events are handled in a different way.
Indirectly related Starter Info, but good to know:
Event NPC can still Move even if far outside off the visible Screen.
On standard setting they stop Moving if a few maptiles outside of the visible screen.
but:
If the Event got his Moveroute through another Event, it continues moving even if miles outside of the visible Screen. (Very usefull for Cars moving in a big City)