Doors, portals and flickering interiors: a mapper's explanation
Why FiveM interiors flicker, vanish through doorways or show the outside world: how MLO rooms and portals work and what usually goes wrong with them.
NXBy Team NolX
· 4 min read

Every server owner eventually gets the same complaint: "the city lags near X." Most of the time someone blames scripts, opens resmon, sees nothing alarming, and gives up. With maps, resmon is the wrong tool. An MLO barely touches script CPU. Its cost is streaming: memory, textures and geometry the client has to load and draw.
Here's what actually drives that cost and how to check the maps you run.
GTA V was built to stream the world in and out as you move. Every model and texture near the player gets loaded into memory, and everything far away is dropped. FiveM adds custom content on top of that, and the budget doesn't magically grow.
When you stack too many heavy maps in one area, the client runs out of streaming room. The symptoms are familiar:
None of that shows up in resmon, because no script is running.
Textures are stored in .ytd files, and they're usually the biggest chunk of an MLO. A single 4096x4096 texture with mipmaps can weigh tens of megabytes. Put twenty of those in a house and you've spent a huge slice of the streaming budget on wallpaper.
What I look for when auditing a map:
.ytd files is loaded five times.FiveM tells you when something is too big. Open the F8 console in-game and look for lines like:
Asset stream/richman_hall.ytd uses 38.4 MiB of physical memory.
Oversized assets can and WILL lead to streaming issues (such as models not loading/rendering).
That warning is not cosmetic. A map that throws several of them will cause the issues listed above, especially combined with other heavy resources. If you only do one check on a map before putting it live, do this one.
LOD means level of detail. A well-made model has several versions: high detail up close, simpler meshes further away, and eventually nothing at all. The engine swaps between them based on distance.
For MLOs the interior itself is mostly handled by rooms and portals, so the engine doesn't draw what's inside until you can see it. But the exterior shell and any custom props placed outside still need sensible LODs and LOD distances. Common mistakes:
People obsess over triangle counts, and they matter, but less than textures in most interiors. A furnished room can carry a fair amount of geometry without trouble if it's occluded properly and the materials are reasonable. What hurts is high-poly props repeated dozens of times, or a single unoptimised sculpted object (a statue, a car model used as decoration) with hundreds of thousands of triangles.
A practical routine I'd suggest:
profiler record 500
profiler view
.ytd sizes on disk in each resource's stream folder. Anything well above 16 MB deserves a look.For CPU, resmon 1 is still useful, just for scripts. If a map resource shows up there with real CPU time, it's probably shipping a script with it.
Good MLOs are boring from a performance point of view. Reasonable textures, shared dictionaries, proper LODs on exteriors, and occlusion so the engine can skip what you can't see. Entity sets help too: optional rooms and furniture that aren't enabled don't cost anything.
We build our interiors with these limits in mind, because a gorgeous house that makes half the server stutter is a bad house. If you want a reference for what a furnished interior can cost, compare one of ours, like the Cinema Mansion, against whatever is currently causing trouble in your city.
Keep reading
Why FiveM interiors flicker, vanish through doorways or show the outside world: how MLO rooms and portals work and what usually goes wrong with them.
How we light FiveM MLOs so they hold up at noon and at 3 a.m.: real light sources, emissive shaders, per-room timecycle modifiers and the mistakes to avoid.
How Team NolX builds a furnished FiveM MLO, from blockout and CodeWalker to Blender and Sollumz, rooms and portals, entity sets and day and night testing.